S
Snurre
Hi ..
I have a code allowing users to choose printer for
printing a report. To do this, the report must be opened
in preview mode..But how do I close the report, it locks a
table when it's open, preventing other users to open a
report.
Dim stDocname As String
If Forms!bhr!StatusId = 5 Then
stDocname = "rBrevVentelisteEnkel"
With DoCmd
.OpenReport stDocname, acPreview
.RunCommand acCmdPrint
End With
End If
Snurre
I have a code allowing users to choose printer for
printing a report. To do this, the report must be opened
in preview mode..But how do I close the report, it locks a
table when it's open, preventing other users to open a
report.
Dim stDocname As String
If Forms!bhr!StatusId = 5 Then
stDocname = "rBrevVentelisteEnkel"
With DoCmd
.OpenReport stDocname, acPreview
.RunCommand acCmdPrint
End With
End If
Snurre