Displaying data from the past six months

G

Guest

I would like to set up my query to automatically display data from the past
six months. My criteria row looks like this:
(Format(Date(),"yyyymmdd"))

yyyymmdd is the date format for the table. I realize this gives me todays
date but I want to know how to get it to automatically give me 6 months ago
(20060301). Can you help me out?
 
G

Guest

Format(DateAdd("m",-6,Date()),"yyyymmdd")

joshroberts said:
I would like to set up my query to automatically display data from the past
six months. My criteria row looks like this:


yyyymmdd is the date format for the table. I realize this gives me todays
date but I want to know how to get it to automatically give me 6 months ago
(20060301). Can you help me out?
 

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