Hi
I have a table that includes "course start" and "course finish" dates. I run a variety of reports based around the dates, eg courses running currently, courses that finished last year, courses that start next year, etc etc.
I created one underlying query where I set the required dates. For example, for current courses I'm filtering on two fields - courses with a start date before or equal to today AND a finish date after today and for courses that finished last year I'm only filtering on the finish date and so on.
All well and good, but I'm now trying to set these dates in a form. So a "Current Courses" button will set the Start and Finish dates. Except I can't figure out how to get greater than or less than, etc to pass to the query. If I set a plain date and use the >[Form]![CriteriaForm]![Startdate] that works, but I want to include the ">" in the form, as sometimes the start date will be greater than, sometimes less than and so on. Using me.startdate = ">"& Date() looks correct in the criteria text box, but I get "the expression is typed incorrectly, or it is too complex to be evaluated...." when I run the query.
I hope that makes sense!
Any ideas?
Thanks!