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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

write a query to find date and time.

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
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.
 
Set the Expression to be as such:

Expr1: Format([NameOfTimeStamp],"mm/dd/yyyy")

and the Criteria as such:
Criteria: = #06/11/2002#

This should produce the desired results.
Roy
aka BanditWk
Las Vegas, NV
roy@cccamerica.org
RLMBandit@aol.com (private)
 
Hi Roy,
Unless I did something wrong still was unable to get this correct info.

 
use like #06/11/2002# & "*" or like *06/11/2002*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top