Would someone tell me why the top part of this code doesn't do anything ?
It executes the code after the else
I have tried variations of the If Date syntax but it seems to ignore it
It executes the code after the else
I have tried variations of the If Date syntax but it seems to ignore it
Code:
Private Sub Form_Open(Cancel As Integer)
If Date = 2242011 Then
MsgBox "It is Feb 24, 2011"
DoCmd.OpenForm "FrmCustInfo", acNormal
Else
' Minimize the database window and initialize the form.
' Move to the switchboard page that is marked as the default.
Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' "
Me.FilterOn = True
End If
End Sub