P plgii Registered User. Local time Today, 08:22 Joined Apr 13, 2006 Messages 15 Dec 6, 2006 #1 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?
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?
Matt Greatorex Registered User. Local time Today, 08:22 Joined Jun 22, 2005 Messages 1,019 Dec 6, 2006 #2 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
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