swaybright
Technical User
Hi all,
I am gettin the following error:
"The Microsoft Jet database engine does not recognize '[forms]![chartoptions]![combo7]' as a valid field name or expression"
I have a chart that is based on a query. I want to give the user the option to limit the data set of the query based on values selected from combo boxes. So on the form with the chart I have 4 combo boxes with values. The sql statement is below:
SELECT LevelData.Level1, LevelData.Haze, ResinList.ResinName, ResinList.ResinType, ResinData.RDResearchID
FROM (ResinList INNER JOIN ResinData ON ResinList.ResinID = ResinData.Resin) INNER JOIN LevelData ON ResinData.ResinDataID = LevelData.ResinDataID
WHERE (((LevelData.Level1) Is Not Null) AND ((ResinList.ResinType)="cRCP"
AND ((ResinData.RDResearchID)=67) AND ((IIf(IsNull([forms]![chartoptions]![combo7]),"",[resinlist].[resintype]=[forms]![chartoptions]![combo7]))<>False) AND ((IIf(IsNull([forms]![chartoptions]![combo9]),"",[resinlist].[synthesis]=[forms]![chartoptions]![combo9]))<>False) AND ((IIf(IsNull([forms]![chartoptions]![combo11]),"",[resinlist].[resinname]=[forms]![chartoptions]![combo11]))<>False) AND ((IIf(IsNull([forms]![chartoptions]![combo13]),"",[resinlist].[mfr]=[forms]![chartoptions]![combo13]))<>False)) OR (((LevelData.Level1) Is Not Null) AND ((ResinList.ResinType)="cHP"
AND ((ResinData.RDResearchID)=67) AND ((IIf(IsNull([forms]![chartoptions]![combo7]),"",[resinlist].[resintype]=[forms]![chartoptions]![combo7]))<>False) AND ((IIf(IsNull([forms]![chartoptions]![combo9]),"",[resinlist].[synthesis]=[forms]![chartoptions]![combo9]))<>False) AND ((IIf(IsNull([forms]![chartoptions]![combo11]),"",[resinlist].[resinname]=[forms]![chartoptions]![combo11]))<>False) AND ((IIf(IsNull([forms]![chartoptions]![combo13]),"",[resinlist].[mfr]=[forms]![chartoptions]![combo13]))<>False));
Note the query alone works properly. I have tested it without the chart. I get the error when the chart is present.
Shane
I am gettin the following error:
"The Microsoft Jet database engine does not recognize '[forms]![chartoptions]![combo7]' as a valid field name or expression"
I have a chart that is based on a query. I want to give the user the option to limit the data set of the query based on values selected from combo boxes. So on the form with the chart I have 4 combo boxes with values. The sql statement is below:
SELECT LevelData.Level1, LevelData.Haze, ResinList.ResinName, ResinList.ResinType, ResinData.RDResearchID
FROM (ResinList INNER JOIN ResinData ON ResinList.ResinID = ResinData.Resin) INNER JOIN LevelData ON ResinData.ResinDataID = LevelData.ResinDataID
WHERE (((LevelData.Level1) Is Not Null) AND ((ResinList.ResinType)="cRCP"
Note the query alone works properly. I have tested it without the chart. I get the error when the chart is present.
Shane