I'm running a multiuser database, which means reports are printed from various printers. I can use code to size the reports to Legal, however I can't suppress the message for other users, "You do not have exclusive access to this database. Your design changes cannot be saved..."
I don't want to give everyone administrators access, and I don't need the report to be saved when closed since the VB code will resize it next time it's opened.
The subroutine I use to call SetSize() is below. The SetSize() subroutine(lengthy code not shown here) uses prtMip & prtDevMode to set the paper size.
-------------------------------------------------
Private Sub Command19_Click()
Call SetSize("rptName", LegalSize)
'skip this line DoCmd.Close acReport, "rptName", acSaveYes
DoCmd.OpenReport stDocName, acPreview
End Sub
---------------------------------------------------
By skipping the "DoCmd.Close acReport,"rptName",acSaveYes" line, the report opens, and is viewable in LegalSize. However, when the user closes the report, the warning pops up.
I've tried using the DoCmd.SetWarnings False, but it did not work.
Any Suggestions?
I don't want to give everyone administrators access, and I don't need the report to be saved when closed since the VB code will resize it next time it's opened.
The subroutine I use to call SetSize() is below. The SetSize() subroutine(lengthy code not shown here) uses prtMip & prtDevMode to set the paper size.
-------------------------------------------------
Private Sub Command19_Click()
Call SetSize("rptName", LegalSize)
'skip this line DoCmd.Close acReport, "rptName", acSaveYes
DoCmd.OpenReport stDocName, acPreview
End Sub
---------------------------------------------------
By skipping the "DoCmd.Close acReport,"rptName",acSaveYes" line, the report opens, and is viewable in LegalSize. However, when the user closes the report, the warning pops up.
I've tried using the DoCmd.SetWarnings False, but it did not work.
Any Suggestions?