here is my code
Public Sub ChangeInventory()
Dim cmd as ADODB.Command
Dim rs as ADODB.Recordset
set cmd = New ADODB.command
cmd.ActiveConnection = cnn
cmd.CommandText = "select * from edition where edition = " & num2
cmd.CommandType = adCmdText
set rs = cmd.execute
if (rs.eof) then
do something
else
MY ERROR IS HERE
rs.Fields("ptrOrderLine"
.value = 0
endif
rs.close
set rs = nothing
end sub
Its telling me that the current recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. What can i do to fix this, Im lost. Thanks
Public Sub ChangeInventory()
Dim cmd as ADODB.Command
Dim rs as ADODB.Recordset
set cmd = New ADODB.command
cmd.ActiveConnection = cnn
cmd.CommandText = "select * from edition where edition = " & num2
cmd.CommandType = adCmdText
set rs = cmd.execute
if (rs.eof) then
do something
else
MY ERROR IS HERE
rs.Fields("ptrOrderLine"
endif
rs.close
set rs = nothing
end sub
Its telling me that the current recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. What can i do to fix this, Im lost. Thanks