Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AfterUpdate Vs. onLostFocus

Status
Not open for further replies.

aw23

Programmer
Joined
Nov 26, 2003
Messages
544
Location
IL
What is the difference between AfterUpdate and onLostFocus?
I'm continuing a project using someone elses code. They coded on AfterUpdate and it doesn't seem to always work so I was going to try OnLostFocus.

Thanks
 
It has been my limited experience that AfterUpdate is more suited for combo boxes and the like. LostFocus seems to be more for areas where someone is going to be typing something in. Like I said, however, this has just been my experience. I recently used LostFocus for a textbox where it would convert all the text to UCase when the user was done typing something. Hasn't failed yet. Hopefully that statement didn't jinx me.

Jon
 
Thanks. I have changed it to OnLostFocus
 
How are ya aw23 . . . . .

I'm [blue]not so sure you should move the code to the Lost Focus event[/blue]. You could be right, but in general, I doubt it. If you [blue]post the code[/blue] and [blue]explain what happens[/blue] when it doesn't work, we should be able to get ya on track.

In form design view, if you put the cursor on any property line and hit F1, you can read all about it!

Calvin.gif
See Ya! . . . . . .
 
Thanks, I figured out the problem. I think it was probably unrealted to the event although in the end I did use OnLostFocus.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top