Hi,
I have a menu form, which has a button on it to open a "Shops" form. I want the Shops form to display a button on it, ONLY if the Menu form is open.
The button is set to be not visible normally, the code should change that.....but doesn't.
This is what I have so far:
I also have this module:
Thanks!
I have a menu form, which has a button on it to open a "Shops" form. I want the Shops form to display a button on it, ONLY if the Menu form is open.
The button is set to be not visible normally, the code should change that.....but doesn't.
This is what I have so far:
Code:
If IsFormLoaded("frm menu") = True Then
closebutton.Visible = True
Else
Exit Sub
End If
I also have this module:
Code:
Function IsFormLoaded(strFormName As String) As Boolean
IsFormLoaded = (SysCmd(acSysCmdGetObjectState, acForm, strFormName) = acObjStateOpen)
End Function
Thanks!