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!

Query by Date plus 7 days in advance

Status
Not open for further replies.

Beretta22

Technical User
Aug 20, 2002
28
US
I need someone's help in what expression do I use to query on todays date plus 7 days in advance. All I can find is Date Range parameters. (Not what I need) Any ideas?
 
Date()+7

or

DateAdd("d", 7, Date())

Good luck
[pipe]
Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
Thanks for the info. However, the DateAdd("d", 7, Date())
only gave ne the 7th day from todays date. I need to include dates between today and the 7th day. Any ideas?
 
"I need to include dates between today and the 7th day"[lol]
That's the answer. In the criteria row, type:

Between Date() And DateAdd("d", 7, Date())

or

Between Date() And Date() + 7

[pipe]
Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
Well that did it!!! Cannot thank you enough. No wonder I read all the posts here, you guys are GREAT... Thanks again
 
What about dates in the past ie: the last 30 days?

- - -
KnowOne [infinity] Says Thank You - - -

 
Date()-30

or

DateAdd("d",-30)

I remember attending a lesson where they taught about negative numbers...but it was a long time ago...

The past is the 'negative future'
[pipe]
Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top