M
Marsha
I am trying create a simple report off of a make-table query that I have. The
query itself works fine and creates the table. This is the SQL for the
Depression Query:
SELECT DISTINCT Table1.UniqueID, [Table 10].SatisfiedWithLife, [Table
10].DroppedActivitiesAndInterest, [Table 10].LifeIsEmpty, [Table
10].OftenBored, [Table 10].InGoodSpirits, [Table
10].AfraidSomethingBadWillHappen, [Table 10].HappyMostOfTheTime, [Table
10].FeelHelpless, [Table 10].PreferToStayAtHome, [Table
10].MoreMemoryProblems, [Table 10].WonderfulToBeAlive, [Table
10].FeelingWorthless, [Table 10].FullOfEnergy, [Table 10].Hopeless, [Table
10].MostPeopleAreBetterOffThanMe, [Table 10].Total, Table2.Depressed,
Table8.DepressionManagement
FROM ((Table1 INNER JOIN [Table 10] ON Table1.UniqueID=[Table 10].UniqueID)
INNER JOIN Table2 ON Table1.UniqueID=Table2.UniqueID) INNER JOIN Table8 ON
Table1.UniqueID=Table8.UniqueID;
When I go to design a simple report using the report wizard, which includes
all the fields from this make table in the report I get the following error:
"Compile error. In query expression
'IIf(IsNumeric(tblStyles.StyleName),AppLoadString(tblSyleName),tbleStyles.Styles.SyleName)'.
I get this twice. Then I get the error: "Invalid use of Null."
This one is a bit over my head. Any ideas from anyone?? Any help is greatly
appreciated. Thanks!!
query itself works fine and creates the table. This is the SQL for the
Depression Query:
SELECT DISTINCT Table1.UniqueID, [Table 10].SatisfiedWithLife, [Table
10].DroppedActivitiesAndInterest, [Table 10].LifeIsEmpty, [Table
10].OftenBored, [Table 10].InGoodSpirits, [Table
10].AfraidSomethingBadWillHappen, [Table 10].HappyMostOfTheTime, [Table
10].FeelHelpless, [Table 10].PreferToStayAtHome, [Table
10].MoreMemoryProblems, [Table 10].WonderfulToBeAlive, [Table
10].FeelingWorthless, [Table 10].FullOfEnergy, [Table 10].Hopeless, [Table
10].MostPeopleAreBetterOffThanMe, [Table 10].Total, Table2.Depressed,
Table8.DepressionManagement
FROM ((Table1 INNER JOIN [Table 10] ON Table1.UniqueID=[Table 10].UniqueID)
INNER JOIN Table2 ON Table1.UniqueID=Table2.UniqueID) INNER JOIN Table8 ON
Table1.UniqueID=Table8.UniqueID;
When I go to design a simple report using the report wizard, which includes
all the fields from this make table in the report I get the following error:
"Compile error. In query expression
'IIf(IsNumeric(tblStyles.StyleName),AppLoadString(tblSyleName),tbleStyles.Styles.SyleName)'.
I get this twice. Then I get the error: "Invalid use of Null."
This one is a bit over my head. Any ideas from anyone?? Any help is greatly
appreciated. Thanks!!