troubleshooting Question

How be sure user enters the 1st date of a month, quarter, or year in a date field on a form

Avatar of SteveL13
SteveL13Flag for United States of America asked on
Microsoft Access
4 Comments3 Solutions97 ViewsLast Modified:
I have a date field on a form named txtStartDate.  I want to be sure the user enters the 1st date of a month, quarter, or year in the field.

I also have three checkboxes on the form...  chkbxMontlhly, chkbxQuarterly, and chkbxYearly.  Only one can be selected.

So in other words...

If they have selected chkbxMonthly they have to enter either 1/1/xxxx, 2/1/xxxx, 3/1/xxxx, 4/1/xxxx, 5/1/xxxx, 6/1/xxxx, 7/1/xxxx, 8/1/xxxx, 9/1/xxxx, 10/1/xxxx, 11/1/xxxx, or 12/1/xxxx.

If they have selected chkbxQuarterly they have to enter either 1/1/xxxx, 4/1/xxxx, 7/1/xxxx, or 10/1/xxxx.

If they have selected chkbxYearly they can only enter 1/1/xxxx.

How can I do this?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 3 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros