Limit data entry date to exclude Sunday

MICHELE

Registered User.
Local time
Today, 00:06
Joined
Jul 6, 2000
Messages
117
I have a data entry form that users enter a Load date. I want them to be limited to only entering Load dates from Monday to Saturday (no Sunday Dates).
 
In the Before Update event of your LoadDate field use code like this:

If Format(Me![LoadDate], "ddd") = "Sun" Then
MsgBox "This is a Sunday"
Me.Undo
Cancel = True
End If
 

Users who are viewing this thread

Back
Top Bottom