Focus not leaving after BeforeUpdate runs

D

davidwv

Have textbox with a BeforeUpdate event. When leaving textbox, event
fires and does its thing, but the focus does NOT leave the textbox. 2nd
attempt to leave the textbox fires BeforeUpdate event again (it's bad
if it does "its thing" twice).

As far as I can tell, nothing is updating the value in the textbox. And
I'm ending the event code with Cancel = False.

Sorry to be a little vague, but it's very late. I can provide more
details if you want.

Has anyone seen anything like that? Any ideas/thoughts/clues?

Thanks! (and goodnight)

-dave
 
K

Ken Snell

Are you running code on the OnEnter or OnGotFocus event of the next control
in the tab order? How are you "leaving" the textbox? Post your code steps
for all events.
 

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