Parameter Query

tigrou

New member
Local time
Today, 16:17
Joined
Jan 20, 2006
Messages
6
Hi, I'm a complete novice to Access and wonder if anyone can help me with this one please? I have a column in a query that is the output from a barcode scanner called WhenScanned from a table tblScans. The data in the column is in the format of the date and time for example: 20/01/2006 21:30:00 I want to be able to interrogate the data in the query by selecting a range of a date(s) and times for example from 20/01/2006 05:30:00 to 20/01/2006 13:29:00, date and time range from 13:30:00 to 21:29:00, date and time range from 21:30:00 to next day 05:29:00. I can achieve this by typing the required range into the criteria row of the query column in design view e.g. >=#20/01/2006 13:30:00# And <=#20/01/2006 21:29:00# for each range but I want to make it more user friendly so that a user can select type in the appropriate date and select the time range from a drop down list or something without having to edit the query using syntax. Thanks in anticipation.
 
You can create two fields on your form that the query can use. Now these fields DO NOT have to be visible, you can populate them via comboboxes, list boxes, check boxes etc. That way you control the format, and can verify the data is valid before submitting the query.
 
Thanks very much for your advice and reply. Managed to make it work!
 

Users who are viewing this thread

Back
Top Bottom