Turn this query into a parameter query

P

Peter Allanach

Can anyone advise me on how I can modify the criteria -
"Between #12/03/2004 17:00:00# And Date()+#17:00:00#" so
that the Date and Time at the beginnning can be entered by
the user as a parameter
 
M

Michel Walsh

Hi,



BETWEEN [Date and time of start, dd/mm/yyyy hh:MM:ss ] AND Date() +
#17:00:00#



or

BETWEEN [Date and time of start, dd/mm/yyyy hh:MM:ss ] AND Date()
+TimeValue( CStr( [Date and time of start, dd/mm/yyyy hh:MM:ss ] ))


if the same time should be use for the second limit.




Hoping it may help,
Vanderghast, Access MVP
 

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