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!

keep focus in subform when dirty

Status
Not open for further replies.

mavog

IS-IT--Management
Jun 12, 2003
25
GB
Hi,
does any1 have an idea how to do this?
I have a form with subforms in it.When I allow edits the undo/save changes works as long as the user doesn't move focus between form and subform. Is there a way to keep the focus on the subform until the changes have either been saved or undone?
 
use the setfocus property.

example

Lets say you have a text box called "txtbox" and a form called "form1" then just use

form1.txtbox.setfocus

 
I forgot to add....


Just place
form1.txtbox.setfocus

at the beginning of your "undo/save changes" command

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top