Prior Month Information

J

Jim

I have a table which displays information by month. EX:

Name Sku Month
Jim 222 9
Sally 444 8

I am interested in creating query that would only pull the
prior month information. But I need it to be more
automated so I don't have to change the number each
month. I thought it was currentMonth - 1, but that isn't
working.

Thanks in advance,
Jim
 
T

tina

try
Month(Date()) - 1

fyi, if you have prior years in the same table, you'll
have to get a little trickier - otherwise you'll have a
problem when you try to pull (for instance) 12/03 in 1/04.
 

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

Top