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

How can i query by date/time type with 2 operand?

Status
Not open for further replies.

susuke

Technical User
Jul 22, 2002
17
0
0
HU
I have a table (in MSACCESS_2000)with a 'timestamp' column, in these format:
'yyyy. mm. dd. hh:mm:ss'.
I want to query records between two date like this:
'...WHERE timestamp BETWEEN '2002. 07. 17. 12:12:05' AND '2002. 07. 17. 12:21:04';'.

The program send an inputbox asking for a parameter and don't do the query. WHY???
 
Replace the single quotes with Date/Time delimiters # and you might have more success.



" .. .. WHERE timestamp BETWEEN #2002. 07. 17. 12:12:05# AND #2002. 07. 17. 12:21:04#;"



'ope-that-'elps.

G LS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top