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!

what is wrong with this?

Status
Not open for further replies.

Ablecken

Programmer
Jun 5, 2001
130
US
What is wrong with this statement.


INSERT INTO test (ID,One,Two) VALUES (7,test,test)
Microsoft JET Database Engine error '80040e10'

No value given for one or more required parameters.

/login/action.asp, line 54


it looks like this
Code:
mySQL = "INSERT INTO test (ID,One,Two) "
mySQL = mySQL & "VALUES (" & newid & "," & newOne & "," & newTwo & ")"


response.write mySQL
sConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _ 
"\\premfs3\sites\blah\blah\dbase.db;" & _ 
"Persist Security Info=False;"
Set Conn = Server.CreateObject("ADODB.Connection") 



conn.open sConnString
conn.execute(mySQL)


Conn.Close
any help?
 
You should enclose the literal values "test" in quotes. I'm not sure whether single of double quotes are needed.

INSERT INTO test (ID,One,Two) VALUES (7,"test","test")
Terry L. Broadbent
Programming and Computing Resources
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top