Link to home
Start Free TrialLog in
Avatar of tmurray22
tmurray22

asked on

Query all End-Dates 2 days from now

I would like to setup a query for my access database that will return all records
that have an EndDate 2 days from the current date.


Thanks
tmurray22
Avatar of Shauli
Shauli

sqlString = "SELECT * FROM yourtable WHERE datefield = '" & Date + 2 & "';"

S
Sorry, access, not sql srever:

sqlString = "SELECT * FROM yourtable WHERE datefield = #" & Date + 2 & "#;"

S
ASKER CERTIFIED SOLUTION
Avatar of TitoBob
TitoBob
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tmurray22

ASKER

Shuali, I got an error saying characters at end of sql statement. TitoBobs worked fine.
I now have another question but will post separately for more points.

Thanks
tmurray22