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

To check date range

Status
Not open for further replies.

sandyas

Programmer
Apr 20, 2006
31
US
I have two dates(range) which is entered through ASP form in MM/DD/YYYY format. The date in the table is stored as YYYYMMDD. I converted d1 and d2 to that form. It has to be checked with the date in the table.

"Select date1 from table1 where date1 between '" & d1 & "' and '" & d2 & "'"
I get a syntax error.

 
It's working. I used the = instead of between.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top