Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with writing as query to extract date and time data

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Any help would be great.

I am writing a query that will extract some data. My problem is one of the fields is setup as a time field. It has data in the one field like this.
( 6/11/2002 11:00:00 PM )

I am trying to get the data for the entire day. If I enter
#6/11/2002#
I will only the data that occurred exactly at that time.
I would not get data that begins at:

( 6/11/2002 12:00:01 AM ) and on.

Please help with some function criteria.
 
Hi:

If you have century on (displaying a 4-digit year), you can use the LEFT function in your query to extract only the date:

Expr2: Left([DateField],10)

In your example, the result would be 06/11/2002.

Hope this helps.

Jim :) "Get it right the first time, that's the main thing..." [wavey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top