Current situation:
I have a Preview button on a form and there are certain criteria which need to be true before the user can actually do the preview, e.g. only one check box ticked. I’ve got a function which returns True/False to check this, but …
Option 1. I can test those criteria using the function when they click on the Preview button and either carry out the process, or display a warning message box.
I don’t think this is good GUI practice
Option 2 Disable the button and only enable when the criteria are true. This means I have to go through the form and add a test to every control which may affect the validity of the criteria check. Ok, maybe, but this does seem prone to possible bugs.
Is there an easier way to do this check
I sort of think it’s something to do with the events, maybe the WithEvents function. but not sure how to progress