Hi everyone!
I'm sending out a demo and have decided to disable the buttons on the main menu after a certain date (which is "currentdate" on the menu). But it's disabling them no matter what. What am I missing? I've tried changing my system date to no avail. Do I have my arrows backwards or something??
Code:
Private Sub Form_Current()
Dim ctrl As Control
For Each ctrl In Me.Controls
If Forms!welcome!currentdate > 1 / 29 / 17 And TypeOf ctrl Is CommandButton Then
ctrl.Enabled = False
End If
If Forms!welcome!currentdate < 1 / 29 / 17 And TypeOf ctrl Is CommandButton Then
ctrl.Enabled = True
End If
Next
End Sub
TIA!