LAbluesman
Programmer
ok, this in "interesting". I'm trying to do a simple update (ADODB Recordset) in VB6.0. whenever I call the update property, I get an error (see below). now, it's interesting because there are updates in other forms in the project that work just fine, and I'm following those working procedures as close as I can, but, it's causing an error here (lil' bastard). the code is below. please take a look at it and reply with any ideas or solutions you may have. thanks for your time and help.
'the code below is where the problem is occuring..
'where DE_brcs.rsde_cmm_test is the RECORDSET OBJECT being used.
'-----------------------------------------------------------------------------------------------------------
'In the function that executes the SQL..
DE_brcs.rsde_cmm_test.CursorType = adOpenKeyset 'These 2 lines are here to keep
DE_brcs.rsde_cmm_test.LockType = adLockOptimistic 'VB happy for updating purposes.
DE_brcs.rsde_cmm_test.Open (SQLstring)
'In the function that executes the ADODB update..
str_message = "You have selected the following updates: "
If txt_actlast.Text <> DE_brcs.rsde_cmm_test!actlast Then
str_message = str_message + vbCr + "Last Name: " + DE_brcs.rsde_cmm_test!actlast + _
" >> " & txt_actlast.Text
DE_brcs.rsde_cmm_test!actlast = txt_actlast.Text
End If
If MsgBox(str_message, vbOKCancel + vbQuestion, "Updating fields"
= vbOK Then
DE_brcs.rsde_cmm_test.Update <<--------------- Error occurs on this line.
Else
adodb_brcsClone.CancelUpdate
End If
'-------------------------------------------------------------------------------------------------------------
'Below is the error message that I get..
Run-time error '2147217913 (80040e07)'
[~some stuff about the ODBC driver~] Dynamic Parameter #53 type missmatch.
'the code below is where the problem is occuring..
'where DE_brcs.rsde_cmm_test is the RECORDSET OBJECT being used.
'-----------------------------------------------------------------------------------------------------------
'In the function that executes the SQL..
DE_brcs.rsde_cmm_test.CursorType = adOpenKeyset 'These 2 lines are here to keep
DE_brcs.rsde_cmm_test.LockType = adLockOptimistic 'VB happy for updating purposes.
DE_brcs.rsde_cmm_test.Open (SQLstring)
'In the function that executes the ADODB update..
str_message = "You have selected the following updates: "
If txt_actlast.Text <> DE_brcs.rsde_cmm_test!actlast Then
str_message = str_message + vbCr + "Last Name: " + DE_brcs.rsde_cmm_test!actlast + _
" >> " & txt_actlast.Text
DE_brcs.rsde_cmm_test!actlast = txt_actlast.Text
End If
If MsgBox(str_message, vbOKCancel + vbQuestion, "Updating fields"
DE_brcs.rsde_cmm_test.Update <<--------------- Error occurs on this line.
Else
adodb_brcsClone.CancelUpdate
End If
'-------------------------------------------------------------------------------------------------------------
'Below is the error message that I get..
Run-time error '2147217913 (80040e07)'
[~some stuff about the ODBC driver~] Dynamic Parameter #53 type missmatch.