....and the SELECT thats trying to pull from said Query doesn't like it
one bit! ;)
I'm working on this project (in Access 2002) and there is a report
who's RecordSource is the following SELECT;
SELECT
xTab.FirstOfPRI ORITZTN_STATUS_ NAME,
xTab.[Total Of CountofITEM_ID],
iif(IsNull( xTab.[FY06 Q1] ), 0, xTab.[FY06 Q1]) AS [FY06 Q1],
iif(IsNull( xTab.[FY06 Q2] ), 0, xTab.[FY06 Q1]) AS [FY06 Q2],
iif(IsNull( xTab.[FY06 Q3] ), 0, xTab.[FY06 Q1]) AS [FY06 Q3],
iif(IsNull( xTab.[FY06 Q4] ), 0, xTab.[FY06 Q1]) AS [FY06 Q4],
iif(IsNull( xTab.[FY07 Q1] ), 0, xTab.[FY06 Q1]) AS [FY07 Q1],
iif(IsNull( xTab.[FY07 Q2] ), 0, xTab.[FY06 Q1]) AS [FY07 Q2],
IsNull( xTab.[<>], 0 ) AS [<>]
FROM
qryAllProjectsE ventsPrioritztn Deployment3_Cro sstab xTab
WHERE
(qryAllProjects EventsPrioritzt nDeployment3_Cr osstab
.FirstOfPRIORIT ZTN_STATUS_NAME = "Enterprise Approved")
Or
(qryAllProjects EventsPrioritzt nDeployment3_Cr osstab
.FirstOfPRIORIT ZTN_STATUS_NAME = "BU/Specialty Group Approved")
Or
(qryAllProjects EventsPrioritzt nDeployment3_Cr osstab
.FirstOfPRIORIT ZTN_STATUS_NAME = "Internal Only")
Or
(qryAllProjects EventsPrioritzt nDeployment3_Cr osstab
.FirstOfPRIORIT ZTN_STATUS_NAME ="Event Only");
Now, as soon as I try to run the report (Print Preview), I get the "The
Microsoft Jet database engine does not recognize 'xTab.[FY06 Q4]' as a
valid field name or expression."
I've seen a lot of talk on the 'Net about how others who have gotten
this error need to specify the data type(s) of their parameters. Well,
this query doesn't take parameters, it pulls its data from another
query.
After looking at the output of the crosstab query, I can see that
'xTab.[FY06 Q4]' is simply not being output by the query as there is no
data for that column (and the other 2 that follow).
My question is, is there any way to dynamically find out that those
columns are not being output, and deal with it properly so that I can
run this report and not have it crashing?
OR, how should I deal with this? I was thinking of trying to force the
missing columns in there somehow with 0's or something but I just can't
seem to wrap my head around this one.
Thanks for listening,
-S
one bit! ;)
I'm working on this project (in Access 2002) and there is a report
who's RecordSource is the following SELECT;
SELECT
xTab.FirstOfPRI ORITZTN_STATUS_ NAME,
xTab.[Total Of CountofITEM_ID],
iif(IsNull( xTab.[FY06 Q1] ), 0, xTab.[FY06 Q1]) AS [FY06 Q1],
iif(IsNull( xTab.[FY06 Q2] ), 0, xTab.[FY06 Q1]) AS [FY06 Q2],
iif(IsNull( xTab.[FY06 Q3] ), 0, xTab.[FY06 Q1]) AS [FY06 Q3],
iif(IsNull( xTab.[FY06 Q4] ), 0, xTab.[FY06 Q1]) AS [FY06 Q4],
iif(IsNull( xTab.[FY07 Q1] ), 0, xTab.[FY06 Q1]) AS [FY07 Q1],
iif(IsNull( xTab.[FY07 Q2] ), 0, xTab.[FY06 Q1]) AS [FY07 Q2],
IsNull( xTab.[<>], 0 ) AS [<>]
FROM
qryAllProjectsE ventsPrioritztn Deployment3_Cro sstab xTab
WHERE
(qryAllProjects EventsPrioritzt nDeployment3_Cr osstab
.FirstOfPRIORIT ZTN_STATUS_NAME = "Enterprise Approved")
Or
(qryAllProjects EventsPrioritzt nDeployment3_Cr osstab
.FirstOfPRIORIT ZTN_STATUS_NAME = "BU/Specialty Group Approved")
Or
(qryAllProjects EventsPrioritzt nDeployment3_Cr osstab
.FirstOfPRIORIT ZTN_STATUS_NAME = "Internal Only")
Or
(qryAllProjects EventsPrioritzt nDeployment3_Cr osstab
.FirstOfPRIORIT ZTN_STATUS_NAME ="Event Only");
Now, as soon as I try to run the report (Print Preview), I get the "The
Microsoft Jet database engine does not recognize 'xTab.[FY06 Q4]' as a
valid field name or expression."
I've seen a lot of talk on the 'Net about how others who have gotten
this error need to specify the data type(s) of their parameters. Well,
this query doesn't take parameters, it pulls its data from another
query.
After looking at the output of the crosstab query, I can see that
'xTab.[FY06 Q4]' is simply not being output by the query as there is no
data for that column (and the other 2 that follow).
My question is, is there any way to dynamically find out that those
columns are not being output, and deal with it properly so that I can
run this report and not have it crashing?
OR, how should I deal with this? I was thinking of trying to force the
missing columns in there somehow with 0's or something but I just can't
seem to wrap my head around this one.
Thanks for listening,
-S
Comment