Hi,
On a bound form, I'm trapping the before update event, and using ADO to send an update query to the database (just using access as the front end here).
To stop Access trying to do the update itself, I've got
at the end of the beforeupdate sub. But this means that Access still thinks the record is dirty, so I can't leave the record. Does anyone know how I can kid access into thinking the record isn't dirty when the before update has run?
I tried
which makes the record clean, but resets the values on the form, even though they're updated in the database.
and
causes an error.
Thanks for any help!
On a bound form, I'm trapping the before update event, and using ADO to send an update query to the database (just using access as the front end here).
To stop Access trying to do the update itself, I've got
Code:
Cancel = True
I tried
Code:
Me.undo
and
Code:
Me.Dirty = False
Thanks for any help!