G
Guest
Often, I need to invoke the controls of a form that always is open, sometimes
it is visible another times it is hide.
I created a function to invoke the form
Public Function frmRpt() As Form
If IsLoaded("E1_MenuRpt") Then
Set frmRpt = Forms!E1_MenuRpt
End If
End Function
It works but always I call the function frmRpt should run this function.
I think if it is possible create a constant as form it will be better and
fater
I tried to do
const xfrm as form= "E1_MenuRpt"
It doesn't work
Is is possible create a constant global for a specific form?
Thanks
jcp
it is visible another times it is hide.
I created a function to invoke the form
Public Function frmRpt() As Form
If IsLoaded("E1_MenuRpt") Then
Set frmRpt = Forms!E1_MenuRpt
End If
End Function
It works but always I call the function frmRpt should run this function.
I think if it is possible create a constant as form it will be better and
fater
I tried to do
const xfrm as form= "E1_MenuRpt"
It doesn't work
Is is possible create a constant global for a specific form?
Thanks
jcp