Error -2147467259

linda sciallo

Registered User.
Local time
Today, 11:32
Joined
May 15, 2001
Messages
21
Has anyone ever gotten this error when you try to update a recordset??:

"Key column information is insufficient or
incorrect. Too many rows affected by
the update". Error -2147467259

If so, how did you resolve the problem??

Thanks.
 
Below is the code:

strfield is the name of the field
NewValue contains "0.01"
intIndex contains the field index in the recordset
mrsTable is the recordset

I get the error when I hit the update statement.

'************************************
'Public property that returns the value
'of the field of the current record of the recordset
'Parameters:name of the field
'************************************

Public Property Let NValue(strField As String, ByVal NewValue As String)
Dim intIndex As Integer

intIndex = getFieldIndex(strField)
mstrValues(intIndex) = NewValue
mrsTable.Fields(intIndex) = ConvertedValue(intIndex, NewValue)
mrsTable.Update 'Updates the recordset
SetProperties
End Property
 

Users who are viewing this thread

Back
Top Bottom