S
Silvio
For some reason the "If Toolbar = 4 Or 10 Or 11 Or 12 Or 13 Then" line does
not work. If I enter only one number (e.g. If Toolbar = 12 then) then it
works fine. What I am doing wrong?
Dim Toolbar As Integer
Toolbar = DLookup("ToolbarID", "qryCurrentUser")
If Toolbar = 4 Or 10 Or 11 Or 12 Or 13 Then
Me.AddCycle.Enabled = False
Me.TxHold.Enabled = False
Me.frmHoldsSub.Enabled = False
Else
Me.AddCycle.Enabled = True
Me.TxHold.Enabled = True
Me.frmHoldsSub.Enabled = True
End If
not work. If I enter only one number (e.g. If Toolbar = 12 then) then it
works fine. What I am doing wrong?
Dim Toolbar As Integer
Toolbar = DLookup("ToolbarID", "qryCurrentUser")
If Toolbar = 4 Or 10 Or 11 Or 12 Or 13 Then
Me.AddCycle.Enabled = False
Me.TxHold.Enabled = False
Me.frmHoldsSub.Enabled = False
Else
Me.AddCycle.Enabled = True
Me.TxHold.Enabled = True
Me.frmHoldsSub.Enabled = True
End If