You have an additional comma after 'pic10_url'
Code:
[...]pic9_url, pic10_url,)
... i actually posted the wrong code to the forum (I had been playing around with possibilies and posted that. The code that works one the server connected to MS ACESS is
SQL="INSERT INTO proj_detail (user_username, proj_name, no_of_pics, pic1_url, pic2_url, pic3_url, pic4_url, pic5_url, pic6_url, pic7_url, pic8_url, pic9_url, pic10_url) VALUES ('" & strLogin & "','" & strProjName & "','" & NoOfPics & "','" & strPicUrl1 & "','" & strPicUrl2 & "','" & strPicUrl3 & "','" & strPicUrl4 & "','" & strPicUrl5 & "','" & strPicUrl6 & "','" & strPicUrl7 & "','" & strPicUrl8 & "', '" & strPicUrl9 & "','" & strPicUrl10 & "')"
set conn = server.createobject("ADODB.Connection")
conn.CursorLocation = 3
conn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\Inetpub\wwwroot\xxxxxxxx\xxxxxxxx\images.mdb;Je t OLEDB:glistDSN;")
set rs=conn.execute(SQL)
conn.Close
Set rs=Nothing
EDIT
____
And you had an extra 'VALUES' after the table name. I've updated my post
Bookmarks