Date criteria minus 1

Brian900

Registered User.
Local time
Today, 21:59
Joined
Oct 10, 2002
Messages
51
I want to set up a query that will include the entered date and records for the previous day. For example; if the user enters 2/2/03, I want it to include records from 2/2/03 and 2/1/03. Does any one know how to enter this into the criteria?

Brian
 
Set the Criteria:-
Between [Enter a date]-1 AND [Enter a date]

Declare the parameter:-
In query Design View, choose menu Query, Parameters...
Type the Parameter: [Enter a date]
Select the Data Type: Date/Time
 
This worked. Thanks!

Brian
 

Users who are viewing this thread

Back
Top Bottom