ajhez
07-21-2015, 07:28 AM
Potentially stupid question here...
I am creating a userform for users to populate a document.
I want to use MSG boxes to stop a the form being submitted (and the various associated actions from occurring) until certain fields have been chosen.
E.g. there is a textbox for a name to be entered. This is absolutely required so I do not want the form to start and make any changes to the document until that textbox has a value within it. Similarly there are sections where the user needs to make a choice by selecting one or more checkboxes - if no checkboxes are selected then the form should not start.
Currently i have this linked to my OK command button - so i can get the boxes to come "Please Enter Name" but once all of the MSG boxes have been OK'd the form carries on and runs anyway.
What mistake am I making here? :think:
Cheers for any help!
AJHEZ
I am creating a userform for users to populate a document.
I want to use MSG boxes to stop a the form being submitted (and the various associated actions from occurring) until certain fields have been chosen.
E.g. there is a textbox for a name to be entered. This is absolutely required so I do not want the form to start and make any changes to the document until that textbox has a value within it. Similarly there are sections where the user needs to make a choice by selecting one or more checkboxes - if no checkboxes are selected then the form should not start.
Currently i have this linked to my OK command button - so i can get the boxes to come "Please Enter Name" but once all of the MSG boxes have been OK'd the form carries on and runs anyway.
What mistake am I making here? :think:
Cheers for any help!
AJHEZ