G
Guest
Hi,
My small database application is stored on a network drive. Our office has
four floors with several printers on each floor. We select our default
printer from a list of available printers. We can change our default
printer, or we can just change printers for a single job via the Print screen.
I'd like to code my Print command button so that it always sends the report
to the same printer. How can I do this? Do I need to contact our IT people?
The code for my Print Record command button is below.
Many thanks,
---------------------------------------------------
Private Sub cmdPrint_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[JobId] = " & Me!JobId
stDocName = "Job Ticket"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
End If
End Sub
My small database application is stored on a network drive. Our office has
four floors with several printers on each floor. We select our default
printer from a list of available printers. We can change our default
printer, or we can just change printers for a single job via the Print screen.
I'd like to code my Print command button so that it always sends the report
to the same printer. How can I do this? Do I need to contact our IT people?
The code for my Print Record command button is below.
Many thanks,
---------------------------------------------------
Private Sub cmdPrint_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[JobId] = " & Me!JobId
stDocName = "Job Ticket"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
End If
End Sub