I have a small network with two PCs, each running Access 2019. They have identical front end .accdb files
and both are linked to the same back end .accdb file. Each runs the following VBA code to create a pdf file
from an Access report:
When PC #1 runs this code the pdf file is generated and appears on top of the Access form, which is what I want to happen.
But when PC #2 runs the code the pdf file is generated but DOES NOT appear on top of the form. I can't see the pdf file by minimizing
the Access window or by cycling through any open windows by doing ALT + TAB. But when I close Access the pdf appears.
On both PCs, Adobe Acrobat DC is the default application for opening pdf files. I opened Adobe Acrobat PC and checked preferences,
but I couldn't see an option for forcing the document to appear on top of other windows.
I don't know if the problem is with my VBA code, or if it has to do with Adobe Acrobat DC's settings.
Any suggestions would be appreciated.
Thank you.
and both are linked to the same back end .accdb file. Each runs the following VBA code to create a pdf file
from an Access report:
Code:
DoCmd.OutputTo acOutputReport, "rptCustomerQuote", acFormatPDF, "CustomerQuote.pdf", True
When PC #1 runs this code the pdf file is generated and appears on top of the Access form, which is what I want to happen.
But when PC #2 runs the code the pdf file is generated but DOES NOT appear on top of the form. I can't see the pdf file by minimizing
the Access window or by cycling through any open windows by doing ALT + TAB. But when I close Access the pdf appears.
On both PCs, Adobe Acrobat DC is the default application for opening pdf files. I opened Adobe Acrobat PC and checked preferences,
but I couldn't see an option for forcing the document to appear on top of other windows.
I don't know if the problem is with my VBA code, or if it has to do with Adobe Acrobat DC's settings.
Any suggestions would be appreciated.
Thank you.