I irade92 Registered User. Local time Tomorrow, 00:41 Joined Dec 26, 2010 Messages 229 Nov 10, 2011 #1 How to set focus on a specific control in a form after closing a report or another form...What to write in Event ..on Close
How to set focus on a specific control in a form after closing a report or another form...What to write in Event ..on Close
V vbaInet AWF VIP Local time Today, 23:41 Joined Jan 22, 2010 Messages 26,374 Nov 10, 2011 #2 In the help files, i.e. hit the F1 key on your keyboard, search for the SetFocus event.
missinglinq AWF VIP Local time Today, 18:41 Joined Jun 20, 2003 Messages 6,417 Nov 10, 2011 #3 Actually, you can use the Form_Activate event of the Form that you're returning to to set the Focus Code: Private Sub Form_Activate() YourFieldName.SetFocus End Sub assuming that you don't mind this Control having Focus when the Form itself initially opens, as well as when you 'return' to it. Linq ;0)>
Actually, you can use the Form_Activate event of the Form that you're returning to to set the Focus Code: Private Sub Form_Activate() YourFieldName.SetFocus End Sub assuming that you don't mind this Control having Focus when the Form itself initially opens, as well as when you 'return' to it. Linq ;0)>