Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Print Form

Status
Not open for further replies.

bcoats

Programmer
Jun 20, 2001
49
US
I am writeing code in a module that is tied to a switchboard button that will open two forms and automatically print those forms then close them. I can open them, and close them but I can't seem to find a way to print them out. I tried putting code in the f0rm_load of the forms and sending argument through OpenArgs to tell it if is is going to automatically print but printing is not allowed in a form event method. So, I need to print these forms and I don't want to have to click a button, I have it where it can do that. My boss doesn't want to have to click those buttons though in this case... Please help me, thank you.

Brian
 
Nevermind I figured it out.. For those that might be interested in the answer, the printout action in macros prints the current active form, window, ect. This fixed my problem. I made the macor and called it with docmd.RunMacro.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top