Finding the previous active control on a form

IanHem

Registered User.
Local time
Today, 13:25
Joined
Jul 8, 2014
Messages
106
Hi

I have a form where the user clicks a button (button 1) to open a modal form, the user then enters data into this form and clicks close.

Then back in the first form I need to find which control had focus before (button 1) was clicked.

Screen.PreviousControl returns a control on the modal form.

I hope its easy like Forms!FirstForm.PreviousControl but I can't seem to find it!

Thanks
 
yes

screen.previouscontrol.setfocus

why not do this BEFORE you open the modal form. Then you can always store the name of this control if you need
 
Yes of course that should be straight forward
Thank you
 

Users who are viewing this thread

Back
Top Bottom