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

INSERT INTO SYNTAX ERROR

Status
Not open for further replies.

Airpan

Technical User
Jun 14, 2005
172
US
I looked at my old post regarding this as I had a syntax issue once before, but alas, they are not the same.
I get the following error:
Microsoft JET Database Engine (0x80040E14)
Syntax error in INSERT INTO statement.
line 28

Line 28 is the SQL:
Code:
oConn.Execute("INSERT INTO cust_logins (CustID,USERNAME,PASSWORD,CustName,email) VALUES ("& frmcustid &",'"& frmcustuser &"','"& frmcustpass &"','"& frmcustname &"','"& frmcustemail &"')")

I ran the following in access:
Code:
INSERT INTO cust_logins ( CustID, USERNAME, [PASSWORD], CustName, email )
VALUES (6060, 'george', 'geroge', 'George', 'g2g.com');
and it successfully inserted the information. Things are breaking this week - not good.

~E
 
Code:
oConn.Execute("INSERT INTO cust_logins (CustID,USERNAME,[!][[/!]PASSWORD[!]][/!],CustName,email) VALUES ("& frmcustid &",'"& frmcustuser &"','"& frmcustpass &"','"& frmcustname &"','"& frmcustemail &"')")

Looks like you missed the square brackets.

-George

"the screen with the little boxes in the window." - Moron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top