S
swas
Hello,
I have a popup form frmPopup which stays visible. When I click the
occasional button on this form, I want the focus to jump straight back to my
frmMain.
frmPopup has a property to set where the focus should be set back to.
Currently it is a string, but could easily be changed to an control or form
data type.
So with the focus property set to, say 'frmMain', I am not sure on correct
syntax to actually set the focus back to this form. I have tried
CurrentProject, AllForms and Forms objects / collections, using the item
property, to no avail.
To make it worse, the calling form may even be a subform. I am assuming no
matter, so long as the correct information is able to be set / retrieved.
Thanks for any thoughts.
swas
I have a popup form frmPopup which stays visible. When I click the
occasional button on this form, I want the focus to jump straight back to my
frmMain.
frmPopup has a property to set where the focus should be set back to.
Currently it is a string, but could easily be changed to an control or form
data type.
So with the focus property set to, say 'frmMain', I am not sure on correct
syntax to actually set the focus back to this form. I have tried
CurrentProject, AllForms and Forms objects / collections, using the item
property, to no avail.
To make it worse, the calling form may even be a subform. I am assuming no
matter, so long as the correct information is able to be set / retrieved.
Thanks for any thoughts.
swas