I want users to have the ability to run a pre-defined Access report, but I don't want them entering the Access IDE (the database is password protected). How can I give users the ability to run an Access report yet keep them out of the Access IDE?
The only thing I can suggest is to output the report to an external file (Word, HTML, Excel or Notepad) on exit from the Access Application and then place a shortcut on their desktop to the Word documenmt.
Or alternatively create a seperate Access 'front-end' on their pc which just allows access to the report, this will mean that they will not need permissions.
Ian
Interesting idea, Ian. Unfortunately, I don't have an Access application. I have a VB application that uses an Access database. Is there some way to trigger the running of the report when the database closes?
You could open and run the instance of Access with the visible property set to false. One caution, though: if Access throws an error you may have to reboot to cancel the instance. Debug your code with the instance visible before adding changing to invisible.
Since you're developing in VB and only accessing the data from Access, you might get a better answer in the Visual Basic Databases forum.
I'd like for the solution to not include VB. Please elaborate on how to open and run Access with the visible property set to false. Or at least provide key words to look up in the help files.
Check out the following KB article:
192919 - HOWTO: Automate a Secured Access Database Using Visual Basic
Even if your database is not secured, it will show you about setting references and automating Access databases from VB. After creating the instance of Access, set its visible property to false.
If objAcc is you Access application
objAcc.visible = false
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.