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

Select by "Updated"

Status
Not open for further replies.

wreded

Technical User
Dec 18, 2001
119
US
i've been through the FAQs and searched on Date and can't find an answer to my question.
i have a date/time field that is updated when user's change a record. It's updated as Now(0 so i get the whole blamed date/time thing. Anyway, i want to pull information on items that were updated yesterday. When i use a query with SQL criteria
SELECT Users.IndvName, Users.Rank, Users.IATestDate, Users.Updated
FROM Users
WHERE (((Users.Updated)=-1));
i get a blank record set.
Any ideas?
Thanks,
Dave
 
... WHERE CLng([date/time field]) = CLng(Now())-1 ...

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