OnExit

P

Peter Kinsman

I often use the OnExit property of a control for example to look up the
description for a Product Code. This causes problems when the Exit key is
pressed if one of the controls that is checked has the focus.
Does anyone know of a way round this problem please?

Many thanks

Peter Kinsman
 
A

Allen Browne

Could you use the control's AfterUpdate event instead?
That way it only changes if the control value changed.

If you are still stuck with a particular error, give details.
 
P

Peter Kinsman

Allen

It involves a lot of code, but perhaps I could initially clear the OnExit
property of all the controls and use the AfterUpdate property to set it to
[Event Procedure].
I have found that it is sometimes necessary to do this with OnExit
properties in subforms.
The intention is to warn the operator as soon as possible that they have
made an error.

Thanks for you help yet again

Peter
 

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