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

Date Problem

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
guys,

What's my problem actually

this is my code in asp
strinsert="insert into score (badge,score,qid,date) "&_
" values('"&badge&"',"&score&","&qid&",#" & Date() & "#)"

this is the error:

insert into score (badge,score,qid,date) values('12319',3,1,#6/1/2004#)
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.

/dept/amt/software/quiz/quizall.asp, line 97


regards,Nor
 
discusmania

I am not sure you have resolved your problem.

Date is a reserved word. I would be a bit concerned about using Date for a field name.
 
How About this:
strinsert="insert into score (badge,score,qid,[date]) "&_
" values('"&badge&"',"&score&","&qid&",#" & Date() & "#)"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top