Graham1894
Registered User.
- Local time
- Today, 00:33
- Joined
- Apr 1, 2016
- Messages
- 15
Hello,
In the form for my Customer Address table I have a toggle button to show if the address is Active or Closed.
In the form for my Equipment table I have the same for the items of plant, a toggle button showing if the item is Active or Closed.
The Equipment table is linked to the Customer Address table via the Customer Address ID.
I cannot just delete the items from the DB due to legislation, I therefore want to put in 2 validations;
1. If someone wants to close an address which still has Active plant, a warning would be displayed saying there is still Active plant at the address, do they want to continue.
2. If they choose to continue any plant at that address that is still Active would be made Closed.
I would prefer to do this via VBA when the Customer Address toggle is clicked and I would appreciate if someone could show me how the code would look, or if there is a better way of doing this then please let me know.
Many thanks
In the form for my Customer Address table I have a toggle button to show if the address is Active or Closed.
In the form for my Equipment table I have the same for the items of plant, a toggle button showing if the item is Active or Closed.
The Equipment table is linked to the Customer Address table via the Customer Address ID.
I cannot just delete the items from the DB due to legislation, I therefore want to put in 2 validations;
1. If someone wants to close an address which still has Active plant, a warning would be displayed saying there is still Active plant at the address, do they want to continue.
2. If they choose to continue any plant at that address that is still Active would be made Closed.
I would prefer to do this via VBA when the Customer Address toggle is clicked and I would appreciate if someone could show me how the code would look, or if there is a better way of doing this then please let me know.
Many thanks