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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to use Parameter Date in query for calculation within 10 days 1

Status
Not open for further replies.

mckenneyj

MIS
Jun 1, 2002
96
The tables will contain record with dates over several years
I want all dates returned that are within 10 days of the date entered

This works:
>#10/14/2004#-10

This does not:
>[Enter Date]-10

I need the user to be prompted for the date to enter

Thanks,
John McKenney
Work Hard... Play Harder
 
Try
>DateAdd("d",-10,[Enter Date])

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top