AccessAllAreas
Member
- Local time
- Today, 07:59
- Joined
- Jul 20, 2020
- Messages
- 42
Hello Access Experts
I hope you are well during these strange times!
I have a pop-up form for entering data. This data includes a "date" component and a type of "event" component. Almost every week, there will be two "events". There will be one "event" held midweek, there will be another type of "event" held during any weekend. The midweek "event" could be held on any midweek day (Mon-Fri). The weekend "event" could be held on an day during the weekend (Saturday or Sunday). However, there can never be more than 1 midweek or 1 weekend "event".
I have set up code to ensure that no records could be added that are a midweek "event" with the exact same date as an existing record. The same is true for the weekend "event".
What I wish to do is implement some validation code that prevents any records being saved that are either within the same Midweek period (Mon-Fri) of an existing record. And I wish to prevent being able to record any code that would be in the same weekend period (Saturday or Sunday) as an already existing record.
What would be the best way of going about this?
All help gratefully received and appreciated, as always!
Thanks in advance.
I hope you are well during these strange times!
I have a pop-up form for entering data. This data includes a "date" component and a type of "event" component. Almost every week, there will be two "events". There will be one "event" held midweek, there will be another type of "event" held during any weekend. The midweek "event" could be held on any midweek day (Mon-Fri). The weekend "event" could be held on an day during the weekend (Saturday or Sunday). However, there can never be more than 1 midweek or 1 weekend "event".
I have set up code to ensure that no records could be added that are a midweek "event" with the exact same date as an existing record. The same is true for the weekend "event".
What I wish to do is implement some validation code that prevents any records being saved that are either within the same Midweek period (Mon-Fri) of an existing record. And I wish to prevent being able to record any code that would be in the same weekend period (Saturday or Sunday) as an already existing record.
What would be the best way of going about this?
All help gratefully received and appreciated, as always!
Thanks in advance.