CancelEvent

P

Peter

High all.

I want to restrict the user to continue to the next field if an iF
expression Is not fulfilled in a fields after update event…

Do I use the CancelEvent for this or are there other ideas…

Thanks!
 
D

Douglas J. Steele

Put code in the control's BeforeUpdate event (not the AfterUpdate event),
and set Cancel = True if the condition isn't met. That will prevent them
from moving on. (You might want to pop up a message box so that they know
why they can't move on!)
 
P

Peter

Thank you Douglas, this helps a lot.!

Douglas J. Steele said:
Put code in the control's BeforeUpdate event (not the AfterUpdate event),
and set Cancel = True if the condition isn't met. That will prevent them
from moving on. (You might want to pop up a message box so that they know
why they can't move on!)

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)





.
 

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