Dear Nicole:
I'm thinking you need to compare some column in your data to "30 days
before the current date." It doesn't make sense to compare the value
in some "box" to that, does it?
Now, do you want everything where the date is exactly 30 days ago, or
where it is within the last 30 days? It sounds like you want exactly
30 days ago.
Next, with the Now() function, you are dealing with, not a date, but a
date/time. Exactly 30 days ago doesn't mean any time on that date,
but exactly 30 days ago, down to a few milliseconds.
You could run a 24 hour period, from this time of day 30 days ago to
this time of day 31 days ago. But, more likely, you mean any time in
the midnight to midnight period of that day. In that case, the Date()
function is what you probably want.
Finally, there's a question of how your dates are stored in the table.
Are they all recorded with a zero time, or can they be recorded with
hours:minutes:seconds? If no time values are entered, then the time
will be recorded as 0, which will then begin matching the Date()
function values, and things will start to work.
I'll stop now to see if any of this is helping, and to see how you
answer my questions and check my assumptions.
Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts