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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lost focus from subform not working 1

Status
Not open for further replies.

mavog

IS-IT--Management
Jun 12, 2003
25
GB
Hi,
gotta little problem here with a subform.
I've got a button that is enabled for some users to click and edit records in a subform. I want to confirm undo/save changes but somehow the lostfocus event is not activated. I display the save and undo buttons on the dirty event and this works fine. The problem is that users can then click back in the main form without having to click either. Is there another way to keep focus in the subform until the form is 'clean' again?
 
If the forms is "dirty" then when you try & leave the form it will try & update, firing the BeforeUpdate event. You could use this.

B

----------------------------------------------
Ben O'Hara

"Where are all the stupid people from...
...And how'd they get so dumb?"
NoFX-The Decline
----------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top