Hiding the Database Window

G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top