0

Could someone please suggest a way I can get the following sub to work? I'm trying to check to see if a field in a datagrid has been changed. I get runtime error 424 Object Required.
Thanks

[Private Sub DbGrid1_BeforeUpdate(Cancel As Integer)
If DBGrid1.Columns(1).Value.DataChanged = True Then ' Check for change in data.
MsgBox "field changed."
End If
End Sub ]

1
Contributor
1
Reply
2
Views
10 Years
Discussion Span
Last Post by stan yost
0

Could someone please suggest a way I can get the following sub to work? I'm trying to check to see if a field in a datagrid has been changed. I get runtime error 424 Object Required.
Thanks

[Private Sub DbGrid1_BeforeUpdate(Cancel As Integer)
If DBGrid1.Columns(1).Value.DataChanged = True Then ' Check for change in data.
MsgBox "field changed."
End If
End Sub ]

I figured it out. This is the solution:
[If DBGrid1.DataChanged = True Then ....]

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.