J
Jamie
I am trying to write some vb code that will only make a button visible if a
certain form is open.
The code i thought would work is as follows
Private Sub Form_Open(Cancel As Integer)
If IsOpen("frmOrders") Then
Command47.Visible = True
Else
Command47.Visible = False
End If
End Sub
my hope was that command47 button would only be visible if frmOrders is open.
However when i open the form that holds the code an error message comes up
saying there is a compile error and IsOpen is selected in VB of the above
code.
Can anyone please help
certain form is open.
The code i thought would work is as follows
Private Sub Form_Open(Cancel As Integer)
If IsOpen("frmOrders") Then
Command47.Visible = True
Else
Command47.Visible = False
End If
End Sub
my hope was that command47 button would only be visible if frmOrders is open.
However when i open the form that holds the code an error message comes up
saying there is a compile error and IsOpen is selected in VB of the above
code.
Can anyone please help