Home - Microsoft Access Development - Microsoft Access Tips
The following are some samples of VBA code that may prove useful.
Another generic function that tells you if a form is open. If the form name was frmMyForm you would call it using something like:
If funIsLoadedForm("frmMyForm") = True then
Do whatever you have to do
End If
Public Function funIsLoadedForm(ByVal strFormName As String)
As Boolean Const conObjStateClosed = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed
Then Exit_funIsLoadedForm: |
![]()