all records before todays date per year

  • Thread starter Thread starter msmuzila
  • Start date Start date
M

msmuzila

i have records for 5 years, 2000 through 2005

i only want to show the records of those years before todays date

if today is august 2nd, then it shows the records:

2000, before aug 2
2001, before aug 2,
etc.

it doesnt show:
200-, after aug 2
2001 after aug 2nd,
etc
 
i have records for 5 years, 2000 through 2005

i only want to show the records of those years before todays date

if today is august 2nd, then it shows the records:

2000, before aug 2
2001, before aug 2,
etc.

it doesnt show:
200-, after aug 2
2001 after aug 2nd,
etc

SELECT foo
FROM bar
WHERE Format(DateField,"y") < Format(Date(), "y")

(won't be an efficient query though)
 

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

Back
Top