set date to certain day

plgii

Registered User.
Local time
Today, 08:22
Joined
Apr 13, 2006
Messages
15
I have an ActiveX calendar popup but need to limit user choice to Friday only so if they choose other day it prompts them to ONLY choose a Friday, or how can I populate date field to Friday only based from other date field?
 
In the form's Before Update event you could add a check to see if the selected date is correct. e.g.
Code:
If Format([Forms]![[I]form name[/I]]![[I]date field[/I]],"DDDD") <> "Friday" Then
     Msgbox "You must pick a Friday"
End if
 

Users who are viewing this thread

Back
Top Bottom