Every search I've done regarding how to know when a form is visible says basically the same thing:
If fmMaintenance.Visible = True Then...
but I've tried that and fmMaintenance.Visible is true before it has been called. Also, somehow fmMaintenance is called when I step passed the:
If fmMaintenance.Visible = True Then
line. HUH?
Why is .visible always true and why does it call fmMaintenace?
Public Sub CmdCallFlowChart_Click()
If fmMaintenance.Visible = True Then
Debug.Print "Maintenance is on"
Dim IBeep
For IBeep = 1 To 3 ' Loop 3 times.
Beep ' Sound a tone.
Next
MsgBox "Cannot retrieve charts while Maintenance screen is acive", vbExclamation, "Chart Note"
Exit Sub
End If
Call FmFlowCharts.Show
Exit Sub
End Sub
If fmMaintenance.Visible = True Then...
but I've tried that and fmMaintenance.Visible is true before it has been called. Also, somehow fmMaintenance is called when I step passed the:
If fmMaintenance.Visible = True Then
line. HUH?
Why is .visible always true and why does it call fmMaintenace?
Public Sub CmdCallFlowChart_Click()
If fmMaintenance.Visible = True Then
Debug.Print "Maintenance is on"
Dim IBeep
For IBeep = 1 To 3 ' Loop 3 times.
Beep ' Sound a tone.
Next
MsgBox "Cannot retrieve charts while Maintenance screen is acive", vbExclamation, "Chart Note"
Exit Sub
End If
Call FmFlowCharts.Show
Exit Sub
End Sub