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

Need Help With SQL

Status
Not open for further replies.

sgfromny

Technical User
Jan 17, 2003
120
US
can Anyone help with the SQL code I would need to select the following in a DAO recordset:

A. designer = me.designer
B. Status = "IN"
and my trouble...
C. TimeStamp = date() and ANY TIME.

Timestamp Field is stored with Date AND time, Im searching for the date in that field only.
 
Something like this ?
CLng(TimeStamp) = CLng(Date())

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I dont Think so...

My record has "8/31/04 12:21:34PM"
Im Looking to find this record using only 8/31/04
 
A timestamp is a number: integral part=number of days, decimal part=number of seconds.
If DAO choke on CLng, you may try this:
Int(TimeStamp) = Int(Date())
I dont Think so...
Have you tried it ? any error message ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top