crymedry
MIS
- Nov 19, 2003
- 54
ok, i have been working on this code for forever it seems, and i can't figure out what is wrong.
all i am trying to do is update a database record, here is the code:
'define sql statements
StrInsert="UPDATE Issues SET [_detailSituation]=" & frm_misDetail & ", [_solution]=" & frm_misDetail & ", [_status]=" & frm_misStatus & " WHERE [_id] = "& frm_misId &""
'create a connection
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.Open "DSN=miskb"
Set objCmd=Server.CreateObject("ADODB.Command")
Set objCmd.ActiveConnection=objConn
objCmd.CommandText= ""&StrInsert&""
'execute the statements above
objCmd.Execute
and here is the error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
/Scripts/mis/mis_update.asp, line 50
line fifty is the last line of code i placed up there .... any help would be greatly appreciated.
thanks in advance!!!
all i am trying to do is update a database record, here is the code:
'define sql statements
StrInsert="UPDATE Issues SET [_detailSituation]=" & frm_misDetail & ", [_solution]=" & frm_misDetail & ", [_status]=" & frm_misStatus & " WHERE [_id] = "& frm_misId &""
'create a connection
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.Open "DSN=miskb"
Set objCmd=Server.CreateObject("ADODB.Command")
Set objCmd.ActiveConnection=objConn
objCmd.CommandText= ""&StrInsert&""
'execute the statements above
objCmd.Execute
and here is the error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
/Scripts/mis/mis_update.asp, line 50
line fifty is the last line of code i placed up there .... any help would be greatly appreciated.
thanks in advance!!!