In the code below, line 4, "sTable" is recognised as not visible but the "forms(stable).visible = true" does nothing.
Tried it with and without the "Refresh", still the form "sTable" remains invisible.
Tried it with and without the "Refresh", still the form "sTable" remains invisible.
Code:
Public Sub isOpen(sTable As String)
If Len(sTable) > 0 Then
If CurrentProject.AllForms(sTable).IsLoaded = True Then
If Forms(sTable).Visible = False Then Forms(sTable).Visible = True
Forms(sTable).Refresh
End If
End Sub