Newbie: date-time help

S

steve

Hi,
I have created a date_time field that, as the name suggests, contains both
day and time info (02-03-2002 12:00:32)

How can i query both the time and day?
i tried :
......
WHERE
date_time > "12-02-98 00:02:23" and doesnt seem to work.

TIA
-steve
 
J

John Vinson

Hi,
I have created a date_time field that, as the name suggests, contains both
day and time info (02-03-2002 12:00:32)

How can i query both the time and day?
i tried :
.....
WHERE
date_time > "12-02-98 00:02:23" and doesnt seem to work.

Use # as a delimiter instead of ". Note that Access assumes that the
date portion is in American format, month-day-year - as written (with
the change in delimiter) this search should find all records with a
date_time value more recent than December 2, 1998 at 2:23 in the
morning.

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

Top