Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use previous date when date is a parameter

Status
Not open for further replies.

Stevehewitt

IS-IT--Management
Jun 7, 2001
2,075
GB
Hi Guys,

I have the following in my query criteria:

Between ([Forms]![frmReportDateSpecific]![txtStartDate]) And ([Forms]![frmReportDateSpecific]![txtEndDate])

However, I need the txtEndDate value to be one day earlier that the value that the user has entered in. E.G.

On the form frmReportDateSpecific, in the txtEndDate the user entered in 10/07/2005, I need the query to use 09/07/2005.

Any help appreciated.

Cheers,




Steve.

"They have the internet on computers now!" - Homer Simpson
 
Between ([Forms]![frmReportDateSpecific]![txtStartDate]) And ([Forms]![frmReportDateSpecific]![txtEndDate]-1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top