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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change printer to print info from form

Status
Not open for further replies.

Carina1628

Technical User
Nov 12, 2002
16
US
I have a problem with a database I recently got dumped with.
There is a button on an original form that opens a new form with the selected data, prints the data on a preprinted page, and closes the new form. It is supposed to switch printers before it prints, but it has quit doing that. (Someone else was 'helping', and I'm not sure what she did.) The only place I can find anything about the other printer is in a module which is connected to the new form. She changed the port, and it worked once, but then quit working.

What was in there:

Function Set_Printer()
Application.ActivePrinter = "IBM 2391 Plus on IP_192.168.93.85"

End Function

I tried changing it to:

Function Set_Printer()
Application.ActivePrinter = "IBM 2391 Plus on \\PR10A4EE\PR_LPT1"

End Function


but it still prints to the default printer.

How can I get it to print to the IBM 2391?

Any help would be greatly appreciated.
 
What version of MS Access are you dealing with?

--Shaun Merrill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top