Dateserial Question

L

Liz Hansen

Hi,

I need help figuring out the following:

Dateserial that is BETWEEN the first day of the current year AND the
previous month's last date.

So, if I ran the query today it would find data BETWEEN 01/01/04 AND
07/31/04.

Thanks!

Liz
 
A

Allen Browne

Try:
Between DateSerial(Year(Date()), 1,1) And (Date() - Day(Date()))

Might give strange results in January.
 
L

Liz Hansen

I'll give it a try.

Thanks!


Allen Browne said:
Try:
Between DateSerial(Year(Date()), 1,1) And (Date() - Day(Date()))

Might give strange results in January.
 
J

John Spencer (MVP)

Alternative method:

Between Between DateSerial(Year(Date()), 1,1) And DateSerial(Year(Date()),Month(Date()),0)
 

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