I'm writing an ASP page using VBScript to insert data into a SQL table. After I execute the string I'm getting the error Incorrect syntax near ')'. The code where I declare the query string is as follows:
'------------------------------------------------------------------------
InsSicLog = "Insert leads (siclogin) values ("&SicCounter&""
'------------------------------------------------------------------------
where siclogin is the column name in leads table and SicCounter is a variable defined earlier in the code.
I know this is just a syntax problem, but I can't figure out what I am doing wrong. Any help would be greatly appreciated. Thanks!
'------------------------------------------------------------------------
InsSicLog = "Insert leads (siclogin) values ("&SicCounter&""
'------------------------------------------------------------------------
where siclogin is the column name in leads table and SicCounter is a variable defined earlier in the code.
I know this is just a syntax problem, but I can't figure out what I am doing wrong. Any help would be greatly appreciated. Thanks!