How are you getting the user to enter the dates?, with [From Date] type criteria?
Usual way to do this is to use a form to request the dates, include a button to run the report
in the query use Forms!MyForm!FromDate to syntax in the query, you can also include a tect box control in the report with source =Forms!MyForm!FromDate
you need to use your own form and control names of course
Regards
Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now -
Randy
Ken is absolutely right that a good way to call your dates is from a form. I was just providing you with a quick way to do it from the query.
I also wanted to mention that, for some reason, when my post was submitted the quotation mark (" at the beginning of my text box statement was removed. There should be " between the = sign and This.
I'll type it again and see if the " is removed again.
="This report covers information between " & [start date] & "and " & [end date]
Randy
Glad that Ken's method worked. That's the important thing. And as I indicated earlier, the "query by form" method is better anyway.
As for being asked twice for the paremeters, the only time I have been asked twice is when I haven't called the parameters exactly the same in the report as I did in the query. It only takes a single character difference to cause it to happen.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.