C coach.32 Registered User. Local time Today, 17:25 Joined Aug 14, 2011 Messages 28 Sep 30, 2011 #1 I have a form that has a textbox which shows today's date. I would like to have another text box that shows only the Monday prior to the current date. Is this at all possible and if so how? Thank-you in advance for any help you may offer.
I have a form that has a textbox which shows today's date. I would like to have another text box that shows only the Monday prior to the current date. Is this at all possible and if so how? Thank-you in advance for any help you may offer.
John Big Booty AWF VIP Local time Today, 17:25 Joined Aug 29, 2005 Messages 8,243 Sep 30, 2011 #2 You could use the following as the Control Source for your Text Box; Code: =[URL="http://www.techonthenet.com/access/functions/date/dateadd.php"]DateAdd[/URL]("d",-[URL="http://www.techonthenet.com/access/functions/date/weekday.php"]Weekday[/URL]([YourDateField],2)+1,[YourDateField])
You could use the following as the Control Source for your Text Box; Code: =[URL="http://www.techonthenet.com/access/functions/date/dateadd.php"]DateAdd[/URL]("d",-[URL="http://www.techonthenet.com/access/functions/date/weekday.php"]Weekday[/URL]([YourDateField],2)+1,[YourDateField])