Cancel an update

S

SHIPP

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.
 
A

Andrew Smith

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top