lenin
Apr 21st, 2000, 05:13 AM
Can anybody please tell me what is wrong with the following command? I recieve error message
"ODBC error .... two few parameters provided. Expected 2"
Even though the execute method has only OPTIONAL parameters!
'
' Set activeconnection Execute the command
'
Dim lc_command As New ADODB.Command
lc_command.CommandText = "update cartitem set quantity = quantity + 1 where cart_id = lCartID and widget_id = lItemID"
lc_command.ActiveConnection = lconn
lc_command.CommandType = adCmdText
lc_command.Execute
This is fairly urgent for me, so any response is greatly appreciated.
"ODBC error .... two few parameters provided. Expected 2"
Even though the execute method has only OPTIONAL parameters!
'
' Set activeconnection Execute the command
'
Dim lc_command As New ADODB.Command
lc_command.CommandText = "update cartitem set quantity = quantity + 1 where cart_id = lCartID and widget_id = lItemID"
lc_command.ActiveConnection = lconn
lc_command.CommandType = adCmdText
lc_command.Execute
This is fairly urgent for me, so any response is greatly appreciated.