M
Mike C.
Hello.
I have a form, 'frmSecurityNameList', that when it is
opened runs a certain VBA script. This script, which is
pretty long, is located in the "On Load" property of the
form. Recently I have redesigned the database and now I
have made frmSecurityNameList a subform of frmMain with
its 'Visible' property set to 'No'. On the original
button that was used to open the form, it had the simple
code
DoCmd.OpenForm ("frmSecurityNameList")
Now I have it so when the button is clicked it makes
frmSecurityList visible with the code
frmSecurityNamelist.Visible = True
However, just making it visible means the the form is not
loading, thus the script does not run.
Where else can I place the script or is there another way
around this?
Hope this makes sence.
Any help would be appreciated.
MC
I have a form, 'frmSecurityNameList', that when it is
opened runs a certain VBA script. This script, which is
pretty long, is located in the "On Load" property of the
form. Recently I have redesigned the database and now I
have made frmSecurityNameList a subform of frmMain with
its 'Visible' property set to 'No'. On the original
button that was used to open the form, it had the simple
code
DoCmd.OpenForm ("frmSecurityNameList")
Now I have it so when the button is clicked it makes
frmSecurityList visible with the code
frmSecurityNamelist.Visible = True
However, just making it visible means the the form is not
loading, thus the script does not run.
Where else can I place the script or is there another way
around this?
Hope this makes sence.
Any help would be appreciated.
MC