Hi All,
wondering if one of you can help me.
I've written this piece of code in Access 97 (don't ask ) and it's not working. It should simply display in the debug window the name of the printers for the specified report.
Eventually I want it to loop round to find the printers for all the reports in the database.
Any ideas?
Cheers
--Code--
Function LocatePrinter()
Dim rpt1 As Report
Dim rptToChange As String
rptToChange = "Report1"
DoCmd.OpenReport rptToChange, acViewDesign
Set rpt1 = Reports(rptToChange)
Debug.Print (rpt1.PrtDevNames)
End Function
----------------------------------------------------
--Result
* ???? ????????????????????2
---------------------------------
wondering if one of you can help me.
I've written this piece of code in Access 97 (don't ask ) and it's not working. It should simply display in the debug window the name of the printers for the specified report.
Eventually I want it to loop round to find the printers for all the reports in the database.
Any ideas?
Cheers
--Code--
Function LocatePrinter()
Dim rpt1 As Report
Dim rptToChange As String
rptToChange = "Report1"
DoCmd.OpenReport rptToChange, acViewDesign
Set rpt1 = Reports(rptToChange)
Debug.Print (rpt1.PrtDevNames)
End Function
----------------------------------------------------
--Result
* ???? ????????????????????2
---------------------------------
Comment