OnExit for subform only

G

Guest

I display a message when a user moves the focus from the subform to the main
form. The message is coded into the OnExit event for the subform. The user
clears the screen by clicking on a button in the message box.

When the user exits the main form, the message appears twice. Am I right in
assuming that the OnExit even is triggered twice, once for the subform and
again for the main form? If so, is there some way to prevent the second
appearance of the message when exiting the main form?

Thanks in advance,
Oli
04.06.06 09.51 hst
 
G

Guest

PLEASE DISREGARD MY INITIAL POST ON THIS SUBJECT!

I solved my problem. Apparently, I had a stray "End" mistakenly place in the
middle of code.

Oli
04.06.06 10.02 hst
 

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