troubleshooting Question

I Need to Exclude Current month Data from Query Returns

Avatar of Rex
RexFlag for United States of America asked on
Microsoft AccessSQL
14 Comments1 Solution2898 ViewsLast Modified:

I am trying to do something like...

WHERE Format([Created On],"yyyy-mm") < Date() only return data that excludes the current month. My dates are individual mm/dd/yyyy dates, I use the Format approach to put them in a Monthly format, so they can be grouped by month. Since the current month is never complete, I only want the last complete month, which is always "Last month"

This statement seems to be doing nothing. I return September data whether I include the staement or not. I have tried several (over 10) ways of tweaking this, but can't get it to exclude current month data from the returns.

Can anyone tell me how to do this please?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 14 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros