G
Guest
Hello,
I want to limit the date User's can input into a field to be a Friday.
I have the following code in the BeforeUpdate Event of the Date Field
If (Not (DatePart ("d", [DateField]))=6) Then
MsgBox ("Please Enter Friday's Date")
End If
I have changed the parenthesis around (among other trials and errors) but my
results are always the same. No matter which date I put into the DateField,
I get the Message "Please Enter Friday's Date".
Can you assist me with what I am doing wrong?
Thank you
Captain OhNo
I want to limit the date User's can input into a field to be a Friday.
I have the following code in the BeforeUpdate Event of the Date Field
If (Not (DatePart ("d", [DateField]))=6) Then
MsgBox ("Please Enter Friday's Date")
End If
I have changed the parenthesis around (among other trials and errors) but my
results are always the same. No matter which date I put into the DateField,
I get the Message "Please Enter Friday's Date".
Can you assist me with what I am doing wrong?
Thank you
Captain OhNo