I have built an ASP page that utilizes a form to allow for editing information. I ran this SQL in access, that I wrote myself with my textbook (not the wizard) and it works great.
However, I am getting a syntax error when I try to put it in the asp page.
Syntax error (missing operator) in query expression '[CustID]='.
Here is the code I wrote for the ASP page:
If anyone needs to see more of my code I can supply it, but thought this would be a good place to start. THe CustID is an integer, BTW.
Code:
UPDATE cust_logins SET CustName = 'Double Vision Media Group', CUSTUSER = 'dvmg', CUSTPASS = 'dvmg', Email = 'info@dvmg.com'
WHERE CustID=1265;
Syntax error (missing operator) in query expression '[CustID]='.
Here is the code I wrote for the ASP page:
Code:
SQL = SQL = "UPDATE cust_logins SET CustName='"&custname&"',CUSTUSER='"&custuser&"',CUSTPASS='"&custpass&"',Email='"&custemail&"' WHERE [CustID]="& customer &""