Question : Printing from VBA

I am using this small script to ptin all tabs on a tab form - works fine.
I would like to select the printer before i print (pop up th eprint dialogue box)
What code must i add?

Thanks

Answer : Printing from VBA

oops sorry you were asking about a form..  its acPreview  for OpenForm

 DoCmd.OpenForm("FormName", acPreview..

see:
http://www.blueclaw-db.com/docmd_openform_example.htm

Also, you may just want to programmatic-ally print to a specific printer.
this has been discussed before and good instructions can be found here:
<a href="http://www.experts-exchange.com/viewQuestion.jsp?qid=23373270&shareit=rMQpmQQx%2B7zOvBB0BgY1oAISaX9lCB%2Bs&shared=0">I need to be able to print a form to a specific printer.</a>

 
Random Solutions  
 
programming4us programming4us