I have a sql statement that looks correct when I print it out but when I execute it I get a Syntax error:
Syntax error in INSERT INTO statement.
I have been getting this problem all week with other insert, update statements and it is frustrating.
Please help? here is the code
<%
Set conn=Server.CreateObject("ADODB.Connection"
conn.open ("ABFAtlanta"
myArray=split(request.form("MultiSelect",","
for i=0 to Ubound(myArray)
strSql="INSERT tblProductcolors (color) Values ('" & myArray(i) & "')"
SET pcolors = conn.execute(strSql)
response.Write(strSql)
Next
conn.close
set conn=nothing
%>
Syntax error in INSERT INTO statement.
I have been getting this problem all week with other insert, update statements and it is frustrating.
Please help? here is the code
<%
Set conn=Server.CreateObject("ADODB.Connection"
conn.open ("ABFAtlanta"
myArray=split(request.form("MultiSelect",","
for i=0 to Ubound(myArray)
strSql="INSERT tblProductcolors (color) Values ('" & myArray(i) & "')"
SET pcolors = conn.execute(strSql)
response.Write(strSql)
Next
conn.close
set conn=nothing
%>