I get the message that I must use an updatable query to update, but I thought I was using an updatable query. Here is the code... the Sub is in an included file, but I combined them to make it easier.
strInsert = "INSERT INTO Basket(JobNumber, PhotoID, BasketID" & strFields & " VALUES ('" & job & "','" & imgVal & "','" & bsktNum & strValues & "')"
Call RecInsert(strInsert)
Sub RecInsert(ins)
Set Comm = Server.CreateObject("ADODB.Command"
Comm.ActiveConnection = strC
Comm.CommandText = ins
Comm.CommandType = adCmdText
Comm.Execute
Comm.Close
Set Comm = Nothing
End Sub
strInsert = "INSERT INTO Basket(JobNumber, PhotoID, BasketID" & strFields & " VALUES ('" & job & "','" & imgVal & "','" & bsktNum & strValues & "')"
Call RecInsert(strInsert)
Sub RecInsert(ins)
Set Comm = Server.CreateObject("ADODB.Command"
Comm.ActiveConnection = strC
Comm.CommandText = ins
Comm.CommandType = adCmdText
Comm.Execute
Comm.Close
Set Comm = Nothing
End Sub