Ok, I'm using DAO and displaying a bound dbGrid on my form. Under certain circumstances, I need to cancel the transaction in the BeforeUpdate procedure. So, I use
Private Sub DBGrid1_BeforeUpdate(Cancel As Integer)
'code to determine if I need to do a cancel
Cancel = 1
End Sub
Ok, this does what I want, but I get the annoying "this action was cancelled by an associated object" error. There has to be a way from getting around this error message popping up right? Its very annoying to get and is not good for showing to our users. Does anyone know the best way to cancel a db transaction and NOT get this error??
Thanks in advance,
Todd
Thanks - Todd
Private Sub DBGrid1_BeforeUpdate(Cancel As Integer)
'code to determine if I need to do a cancel
Cancel = 1
End Sub
Ok, this does what I want, but I get the annoying "this action was cancelled by an associated object" error. There has to be a way from getting around this error message popping up right? Its very annoying to get and is not good for showing to our users. Does anyone know the best way to cancel a db transaction and NOT get this error??
Thanks in advance,
Todd
Thanks - Todd