Parameter Query of "between ...and "

P

Pearl

I have a parameter query that asks for begin date and end date. I'd like
these dates to be revealed in the report associated with this query. How can
I do that?
 
J

John Spencer

You can set a control's source to the name of a parameter just as if it were a
field. You must get the "name" exactly the same as the parameter including
spaces.

For instance if the parameters are [Begin Date] and [End Date]
You can combine them if you wish

Control Source: = "Date Between " & [Begin Date] & " and " & [End Date]

If you want the dates formatted, use the format function to specify the date
format.

Format([Begin Date],"mmmm d, yyyy")
will display September 1, 2009 if your input was that date.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top