There is code avaialble which will set the macro security to low for that database session only.
Main Topics
Browse All TopicsA mdb database (access 2003/5) on a main PC is set with database password, and when other PCs tried to open the database and preview a report, by runnnig a VB software on a network, there is a security question: OPEN / CANCEL everytime.
When a user uses the main PC to open the mdb database, there is no such security question.
My qn: How can i configure the mdb database, or do something, so that when users from other PCs tried to preview a report that open/access the database, there will NOT have this security question (ie. OPEN/ CANCEL) ?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Just feedback on your comments:
the main server is installed with Access 2007.
when the VB program at a PC with Access 2007 tries to do the same (print a report in the mdb), there is NO prompt.
i found out that when the VB program at a PC with Access 2003 tries to open the mdb database at the server, and print a report, it will prompt to click "OPEN or CANCEL"
so i went to this PC to try "Macro -> Security -> Lower the security", BUT:
- there is no such option in lowering security
- sometimes i get msg like "Unable to run Security Level Wizard, because database is set with pwd"
- fyi, the database is in Access 2000 format.
How can i eliminate the "prompt" whenever the VB program at a PC prints a report in mdb database ?
This is the VBScript code that MS provide to do 'session-level' security settings which eliminates the warnibgs:
Const cDatabaseToOpen = "C:\<FileToOpen>.mdb"
On Error Resume Next
Dim AcApp
Set AcApp = CreateObject("Access.Appli
If Val(AcApp.Version) >= 11 Then
AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow
End If
AcApp.Visible = True
AcApp.OpenCurrentDatabase cDatabaseToOpen
If AcApp.CurrentProject.FullN
AcApp.UserControl = True
Else
AcApp.Quit
MsgBox "Failed to open '" & cDatabaseToOpen & "'."
End
Business Accounts
Answer for Membership
by: wiswalldPosted on 2008-04-10 at 08:43:36ID: 21326047
Tools - Macro - Security - Set to low.
You would have to do this on every computer (I think)
Or try a digital signature.