Mrs.Meeker
Registered User.
- Local time
- Today, 22:43
- Joined
- Mar 28, 2003
- Messages
- 172
I have the following if statement
IIf(Left([tblQuestions].[PageCode],7)="General","_",Left([tblQuestions].[PageCode],InStr(1,[tblQuestions].[PageCode]," ")-1)) & Format(Mid([tblQuestions].[PageCode],InStr(1,[tblQuestions].[PageCode]," ")+1),"0000")
This works in one query (qryQCsubform) but not in another (qryStartSubReport). I have checked closely and they say exactly the same thing. (Even copied and pasted to be sure)!
I received the following error message.
This expression is typed incorrectly, or it is too complex to be evaluated. For example a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of hte expression to variables.
I don't know what to do, does anybody out there?
IIf(Left([tblQuestions].[PageCode],7)="General","_",Left([tblQuestions].[PageCode],InStr(1,[tblQuestions].[PageCode]," ")-1)) & Format(Mid([tblQuestions].[PageCode],InStr(1,[tblQuestions].[PageCode]," ")+1),"0000")
This works in one query (qryQCsubform) but not in another (qryStartSubReport). I have checked closely and they say exactly the same thing. (Even copied and pasted to be sure)!
I received the following error message.
This expression is typed incorrectly, or it is too complex to be evaluated. For example a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of hte expression to variables.
I don't know what to do, does anybody out there?