Rx_
Nothing In Moderation
- Local time
- Today, 04:45
- Joined
- Oct 22, 2009
- Messages
- 2,803
Prevent Parent form from closing Tab Control Sub Form from closing until required fields are completed - unbound form.
(see attachment)
Until now, a function determines if all required fields are completed and returns a True/False. This sets an Application Global Variable. The Close button checks the Global variable and with an If statement allows / prevents the Close code from executing.
It would appear that if a Parent is issued a Close, none of the child objects can stop the close process.
While setting a Global variable does work, just wondering if there is any better solution? My number of Global flags are getting up there as this one application is growing.
This post is great to prevent users from changing to another tab until the required fields in the first tab is satisfied.
http://www.access-programmers.co.uk/forums/showthread.php?t=222546
(see attachment)
Until now, a function determines if all required fields are completed and returns a True/False. This sets an Application Global Variable. The Close button checks the Global variable and with an If statement allows / prevents the Close code from executing.
It would appear that if a Parent is issued a Close, none of the child objects can stop the close process.
While setting a Global variable does work, just wondering if there is any better solution? My number of Global flags are getting up there as this one application is growing.
This post is great to prevent users from changing to another tab until the required fields in the first tab is satisfied.
http://www.access-programmers.co.uk/forums/showthread.php?t=222546