DS said:
Allen said:
In Access 2002 or 2003, you can set the Printer object before you
OpenReport.
In earlier versions, it is more involved. For Access 2000, see:
http://www.members.shaw.ca/AlbertKallal/msaccess/printch2k.zip
of for A97:
http://www.members.shaw.ca/AlbertKallal/msaccess/printch97.zip
OK. I have the report set up....Each record represents a different
printer, can I do this?
If [Printer}=1 Then
Print to 1
but I need it to be open ended because everytime I add a printer I don't
want to add a line to the code, I also don't want to make a new report
everytime I add a new printer. ANY HELP is appreciated!!!
Thanks
DS
PS...these printers will all be on the Network so any computer can
access them.
OK I'm getting closer. Here is what I have. It's really rough!
DoCmd.OpenReport PrepSlip, acNormal
DoCmd.GoToRecord , , acFirst
Application.Printer = [PrinterID]
DoCmd.RunCommand acCmdPrint
DoCmd.GoToRecord , , acNext
Application.Printer = [PrinterID]
Loop
Untill
Last Record
End Loop
Application.Printer = Nothing
The report opens, you go to the first record, the printer is choosen
from the PrinterID control on the report, it prints, ot goes to the next
record and repeats untill there are no more records. I'm sure there are
holes in this, so any help is appreciated.
Thanks
DS