Hello everybody,
Recently I finished an application on Access 97. Everything works fine, except the print button. I have on my Form two buttons. Print & Preview where you can print directly or preview a specific report.
In my company almost 30 people use this application.
Two of them, they cant print the report on a printer of their choice. The print outs go to the printer of my department.
For example a user of the Accounting Dpt cannot "see" the Printers of his department and when he press Print, we receive the Print outs in my Department (IT). Some other users work fine.
The code I used is the following:
Do you have any clue, why this is happening. Is quite strange.
Thank you in advance.
Recently I finished an application on Access 97. Everything works fine, except the print button. I have on my Form two buttons. Print & Preview where you can print directly or preview a specific report.
In my company almost 30 people use this application.
Two of them, they cant print the report on a printer of their choice. The print outs go to the printer of my department.
For example a user of the Accounting Dpt cannot "see" the Printers of his department and when he press Print, we receive the Print outs in my Department (IT). Some other users work fine.
The code I used is the following:
Code:
Private Sub PrintReport_Click()
Dim baumusters, Report, docnameM, docnameS As String
Report = Baumuster.Value
baumusters = Left(Report, 1)
If baumusters <> "4" Then
docnameM = "ReportMB"
[B]DoCmd.OpenReport docnameM, acViewNormal[/B]
ElseIf baumusters = "4" Then
docnameS = "ReportSmart"
[B]DoCmd.OpenReport docnameS, acViewNormal[/B]
End If
End Sub
Do you have any clue, why this is happening. Is quite strange.
Thank you in advance.