(Resolved) Compare this month's sales to this month last year

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

annsolomon

Thread Starter
Joined
May 26, 2003
Messages
22
I'm trying to create an Access query that compares invoices generated in May of 2002 to invoices generated in May of 2003 so we can see how much money we made compared to last year at this time.

I've tried datediff, dateserial, dateadd but can't seem to get it right. Can some kind soul give me a hand here?
 

annsolomon

Thread Starter
Joined
May 26, 2003
Messages
22
I figured it out. Had to use "between". I was trying to just hone in on a particular month last year but I guess that was the lazy way out. Anyway, here's what I ended up with to compare May 02 to May 03:

Between DateSerial(Year(Date())-1,Month(Date())-1,1) And DateSerial(Year(Date())-1,Month(Date()),1)-1
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top