Subtract day from user input

cdoyle

Registered User.
Local time
Today, 11:10
Joined
Jun 9, 2004
Messages
383
Hi,
Working on a query, what I have is a user will select a date on a form and hit submit.

I need the query that it runs, to pull all data -1 day from what they select.

So if they select 10/31 on the form, it needs to pull everything for 10/30 only.

I have this in my query now,
[Forms]![frm_change_report]![txt_Date]

Which pulls the data for the date they selected, but not sure how to subtract a day.
 
DateAdd("d",-1,[Forms]![frm_change_report]![txt_Date])
 
Perfect!
Thanks
 

Users who are viewing this thread

Back
Top Bottom