First day of the month

A

Angel_G

Hi there.
I need to retrieve data in a query greater than or equal to11 months from
now() or date() but I need the criteria to default to the first day of the
month. I am trying
=DateAdd("m",-11,Date())
But it defaults to current date 11 months ago11/6/03 but I need 11/1/03
(which is the first day of the month 11 months ago)
Can any one give me some ideas?
Thank you.
 
F

fredg

Hi there.
I need to retrieve data in a query greater than or equal to11 months from
now() or date() but I need the criteria to default to the first day of the
month. I am trying
But it defaults to current date 11 months ago11/6/03 but I need 11/1/03
(which is the first day of the month 11 months ago)
Can any one give me some ideas?
Thank you.

11 months from today is 11 months in the future, but your DateAdd is
calling for 11 months in the past.
I'll assume you want from the previous 11 months.
 

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