Dates that are not the last day of the month

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi:

I need help with a query. I have a date field in my db and I need to
identify dates that are not the last day of the month.

Thanks
 
You could use a WHERE clause that looks something like:

WHERE DAY(DateAdd("d", 1, [DateField])) > 1
 
It worked. Thanks so much for your help.

Dale Fye said:
You could use a WHERE clause that looks something like:

WHERE DAY(DateAdd("d", 1, [DateField])) > 1

--
Email address is not valid.
Please reply to newsgroup only.


Makeover said:
Hi:

I need help with a query. I have a date field in my db and I need to
identify dates that are not the last day of the month.

Thanks
 
Hi:

I need help with a query. I have a date field in my db and I need to
identify dates that are not the last day of the month.

Thanks

Try a criterion on Datefield of

<> DateSerial(Year([datefield]), Month([datefield]) + 1, 0)


John W. Vinson [MVP]
 

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

Back
Top