J
Jim Evans
I am trying to build a reusable function in a utilities module which will
set the calling form's .Visible property to False and then run a
DoCmd.OpenForm procedure to open another form. This function will be called
from a form's Close button click event.
I am able to open the new form with no problem but, I am not able to get the
code correct to set the calling form's .Visible property.
This is in Access 2003 and the function code that works is below:
--------------------
Public Function fOpenFormsTest(frmOpenForm As String, frmCloseForm As
String)
Dim strOpen As String
Dim strClose As String
--------- This is where I would like to set the .Visible property of
"frmCloseForm"---------
DoCmd.OpenForm frmOpenForm
End Function
set the calling form's .Visible property to False and then run a
DoCmd.OpenForm procedure to open another form. This function will be called
from a form's Close button click event.
I am able to open the new form with no problem but, I am not able to get the
code correct to set the calling form's .Visible property.
This is in Access 2003 and the function code that works is below:
--------------------
Public Function fOpenFormsTest(frmOpenForm As String, frmCloseForm As
String)
Dim strOpen As String
Dim strClose As String
--------- This is where I would like to set the .Visible property of
"frmCloseForm"---------
DoCmd.OpenForm frmOpenForm
End Function