I have a network printer set up right near my office. Throughout the day, reports from a database I created keep popping out from a bunch of different services. It appears that the default printer for the report is this nearby printer (which is what I have set as the default printer on my own computer). I did some testing on nearby computers under other people's accounts, and what is apparently happening is this -
When you load up the database, the default printer is whatever your default printer normally would be. As soon as you hit the button to open the report, though, the default printer is set to this local network printer. Here is my code for opening the report -
- Private Sub cmd_EquipmentReport_Click()
-
On Error GoTo Err_cmd_EquipmentReport_Click
-
-
Dim stDocName As String
-
-
stDocName = "rpt_Equipment"
-
DoCmd.OpenReport stDocName, acPreview
-
-
Exit_cmd_EquipmentReport_Click:
-
Exit Sub
-
-
Err_cmd_EquipmentReport_Click:
-
MsgBox Err.DESCRIPTION
-
Resume Exit_cmd_EquipmentReport_Click
-
-
End Sub
I don't see anything there that would change the default printer on a different computer, under a different user account, to my own personal default printer. I also can't find anything in the report properties that would be causing it to do this. Any ideas on what could be causing this?