Stang70Fastback
Registered User.
- Local time
- Today, 15:17
- Joined
- Dec 24, 2012
- Messages
- 132
Small Change = Error Message
Hey guys, I've got a bit of a mystery that I can't seem to solve :banghead:
I am getting an error message for one of my queries (the code for the query is shown above. The error is shown below.
The query was working fine and I never had any issues until I tweaked one thing. The two instances where it says [Frame11] above used to just be the number 3 until I changed it to allow for other numbers based on a user's input on the form. As soon as I did that, the query went haywire. Frame11 is an option group that can be anything from 1-6. When I try to view the query without going through the Form, it prompts me for a value for [Frame11] so that part seems to be working. After I enter the value, that's when I get the error.
Any ideas what my problem might be?
SELECT DISTINCT [Shift List].[Employee Number]
FROM [Shift List]
WHERE ((([Shift List].[Day Of Week])=[Frame11]) AND ((TimeValue([Start Time]))>=TimeValue([TempVars]![Start]) And (TimeValue([Start Time]))<TimeValue([TempVars]![End]))) OR ((([Shift List].[Day Of Week])=[Frame11]) AND ((TimeValue([End Time]))>TimeValue([TempVars]![Start]) And (TimeValue([End Time]))<=TimeValue([TempVars]![End])));
Hey guys, I've got a bit of a mystery that I can't seem to solve :banghead:
I am getting an error message for one of my queries (the code for the query is shown above. The error is shown below.
The 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 the expression to variables.
The query was working fine and I never had any issues until I tweaked one thing. The two instances where it says [Frame11] above used to just be the number 3 until I changed it to allow for other numbers based on a user's input on the form. As soon as I did that, the query went haywire. Frame11 is an option group that can be anything from 1-6. When I try to view the query without going through the Form, it prompts me for a value for [Frame11] so that part seems to be working. After I enter the value, that's when I get the error.
Any ideas what my problem might be?
Last edited: