Dates that are not the last day of the month

M

Makeover

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
 
D

Dale Fye

You could use a WHERE clause that looks something like:

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

Makeover

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
 
J

John W. Vinson

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]
 
Top