Cancel an update

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a field that at times contains a zero. When this field contains a zero I would like to cancel the update using VBA code. I am running Access 97. Any help would be appreciated.
 
In the BeforeUpdate event code put:

Cancel = [NameOfField] = 0

SHIPP said:
I have a form with a field that at times contains a zero. When this field
contains a zero I would like to cancel the update using VBA code. I am
running Access 97. Any help would be appreciated.
 
Back
Top