J
Joanne
I have one user form
The upper half is for user input.
These values will be put in word docs as bookmarks
The lower half of the form is for various file manipulations (view,
print etc) after the bookmarks have been updated with the input from
upper half of form.
My problem is how to stop the user from trying to manipulate any of
the docs BEFORE the routine to update the bookmarks has been run.
I thought to stop the action with a msgbox requiring a yes/no from the
user (giving me an opportunity to run the routine to set the bookmarks
on a response=yes, or send them back to the input portion of the form
to fill-in the control that is missing data on a response=no) after
the 'after update' event of the last control, but if they don't tab
through the controls and they miss the last control, this approach is
no good.
I also thought to call a routine from each control on the manipulation
portion of the form to check that the controls are all filled in, and
if so, run the routine to update the bookmarks. I think this might be
my best way to go, but I have a real beginners question nagging at me
about this.
I can't use a loop to go thru the controls becuase I only want to
check those controls that are for the user input, not the commands,
combo boxes etc that are for file manipulation. So would it be more
correct to use a select case statement or an if/then/else statement to
check these controls. there are approx 30 input controls and it seems
to me that the if/then/else thing would be unwieldy.
If I use the select case method, once all controls have a value, will
I be able to call the routine to update the bookmarks before giving
control of the app back to the user?
thanks for your time and expertise
Joanne
The upper half is for user input.
These values will be put in word docs as bookmarks
The lower half of the form is for various file manipulations (view,
print etc) after the bookmarks have been updated with the input from
upper half of form.
My problem is how to stop the user from trying to manipulate any of
the docs BEFORE the routine to update the bookmarks has been run.
I thought to stop the action with a msgbox requiring a yes/no from the
user (giving me an opportunity to run the routine to set the bookmarks
on a response=yes, or send them back to the input portion of the form
to fill-in the control that is missing data on a response=no) after
the 'after update' event of the last control, but if they don't tab
through the controls and they miss the last control, this approach is
no good.
I also thought to call a routine from each control on the manipulation
portion of the form to check that the controls are all filled in, and
if so, run the routine to update the bookmarks. I think this might be
my best way to go, but I have a real beginners question nagging at me
about this.
I can't use a loop to go thru the controls becuase I only want to
check those controls that are for the user input, not the commands,
combo boxes etc that are for file manipulation. So would it be more
correct to use a select case statement or an if/then/else statement to
check these controls. there are approx 30 input controls and it seems
to me that the if/then/else thing would be unwieldy.
If I use the select case method, once all controls have a value, will
I be able to call the routine to update the bookmarks before giving
control of the app back to the user?
thanks for your time and expertise
Joanne