By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,137 Members | 1,534 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,137 IT Pros & Developers. It's quick & easy.

Return focus to field after GoToControl detour

P: 1
While viewing a form, I use Find (Ctrl-F) to find a new record. In On Current for the form, I use GoToControl to adjust the display of one of the fields in the new record. Is there any way I can determine what field the Find was going to place the focus on? I would like to get that information before I do the GoToControl so that I can use another GoToControl at the end of the On Current event to return focus where it would have been without my programmed detour.

Sep 24 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 31,761
Me.ActiveControl refers to the currently active control on your form.

Me.ControlName.SetFocus sets the focus to the specified control.
Sep 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.