Hiding the Database Window

S

SCHNYDES

Okay, here's the situation...I've tried to automate a mail merge for
individuals as much as possible, allowing them to run their mail merges by
nearly the push of a button using macros. My database's startup option hides
the database window, however how I have the mail merge set up is, the macro
selects the query and runs the mailmerge command from it, when the mail merge
is complete, the form they were on previous opens. However the database
window remains open in the background. Is there a way I can "rehide" the
database window?
 
J

Joan Wild

SCHNYDES said:
Okay, here's the situation...I've tried to automate a mail merge for
individuals as much as possible, allowing them to run their mail
merges by nearly the push of a button using macros. My database's
startup option hides the database window, however how I have the mail
merge set up is, the macro selects the query and runs the mailmerge
command from it, when the mail merge is complete, the form they were
on previous opens. However the database window remains open in the
background. Is there a way I can "rehide" the database window?

When the merge is complete
DoCmd.RunCommand acCmdWindowHide
and then open the form.
 
Top