Previous Date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like for my query to have a criteria of the previous date, not the
current date.
how do I do this
 
well, if you mean yesterday's date, instead of today's date, try

Date()-1

hth
 
I would like for my query to have a criteria of the previous date, not the
current date.
how do I do this

If the table field contains just a date with no time portion use a
criterion of

DateAdd("d", -1, Date())

If it contains both date and time (e.g. if it's filled using the Now()
function) use
= DateAdd("d", -1, Date()) AND < Date()

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top