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

Date/Time with SQL

Status
Not open for further replies.

vandy125

Programmer
Aug 13, 2001
1
US
I have two two strings that I have built into the dd/mm/yyyy hh:mm:ss format from Form input. I am trying to run an SQL query like this:
SELECT * FROM Table WHERE LastModifiedDate BETWEEN string1 AND string2;
I get syntax error when I run this. Any suggestions on how to do it?
 
Hi!

String1 and string2 need to be enclosed in #'s.

hth
Jeff Bridgham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top