Doppenberg
Registered User.
- Local time
- Today, 14:05
- Joined
- May 25, 2000
- Messages
- 25
I have a problem with a date on my report. I want the user to type a date and select before or after. When they push the report button the report has to show the fields before or after the selected date.
I created some code in the On_Click event of the button that puts the right string in a textbox, like this :
[dateString] = "<#" & [TypedDate] & "#"
In the recordsource of my report i have set the criteria of the date to the textbox [datestring].
But this does not work, i get an error message saying that the criteria is incorrect or too complex.
When I type this string as criteria in the report myself, it works great.
Can anyone tell me what i do wrong or is there an alternative way to do this?
Any help would be greatly appreciated.
Thanks, Tim.
I created some code in the On_Click event of the button that puts the right string in a textbox, like this :
[dateString] = "<#" & [TypedDate] & "#"
In the recordsource of my report i have set the criteria of the date to the textbox [datestring].
But this does not work, i get an error message saying that the criteria is incorrect or too complex.
When I type this string as criteria in the report myself, it works great.
Can anyone tell me what i do wrong or is there an alternative way to do this?
Any help would be greatly appreciated.
Thanks, Tim.