Anyone see why I get the error? I can run this in the access query manually and it works fine.
Set cn = Server.CreateObject("ADODB.Connection")
cn.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" & server.MapPath("/_database/db2004.mdb")
cn.Open
SQL="insert into table1 (Session,[Product Discription],Color,Qty,Price) values ('" &SessionID&"','"&Size&"','"&Color&"','"&Qty&"','"&Price&"')"
cn.Execute(SQL)
cn.close
set cn=nothing
![[upsidedown] [upsidedown] [upsidedown]](/data/assets/smilies/upsidedown.gif)
Set cn = Server.CreateObject("ADODB.Connection")
cn.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" & server.MapPath("/_database/db2004.mdb")
cn.Open
SQL="insert into table1 (Session,[Product Discription],Color,Qty,Price) values ('" &SessionID&"','"&Size&"','"&Color&"','"&Qty&"','"&Price&"')"
cn.Execute(SQL)
cn.close
set cn=nothing
![[upsidedown] [upsidedown] [upsidedown]](/data/assets/smilies/upsidedown.gif)