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

SQL Date

Status
Not open for further replies.

mtsw

Technical User
Oct 27, 2002
3
MY
Hi,
i'm having extracting data from database with date condition problem. The following shown the code:

myday=request.form("day")
mymonth=request.form("Month")
myYear=request.form("Year")

dbdate = mymonth & "/" & myday & "/" & myYear
strSQL="Select * from Seminar where DFrom="& dbdate & ""

Hope anyone there reply me ASAP, thanks.
 
try this
"Select * from Seminar where DFrom='"& dbdate & "'"
or
"Select * from Seminar where DFrom=#"& dbdate & "#"


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top