C
CorporateQAinTX
I couldn't determine which section to list this question under, so I'm
re-posting it under this category.
I found a thread regarding opening an MDE using some VBS code written by
Jeff Conrad, an Access MVP.
Here's the code:
dim o
set o=createobject ("Access.Application")
o.automationsecurity=1 ' low.
o.opencurrentdatabase "\\server\workgroup\filepath"
o.visible=true
o.usercontrol=true
set o=nothing
The MDE file is in a folder that everyone has authority to access.
I don't want anyone but me or any future DB admins from having access to the
tables and queries, so I found an article in the MSDN library regarding use
of Access Runtime and MDE's to add security. It works on my computer, but I
authored all of the VBA and Macros involved. When I try to open it on other
computers, they get messages similar to what you get in Excel when you try to
open a file with Macros and your macro security is set to high. So, I
incorporated Jeff’s code above to open the db and lower the software
securities at the same time.
The code will open an MDB or MDE directly, but I want to open the MDE file
using Runtime. I just can't figure out how to use the "/runtime" code in the
VBS.
To sum it up, right now I can have people open a MDE in runtime, but they
have to know how to manually change the security settings in their Access
software. Or I can open the MDE directly with the security already lowered,
but they can access the tables, forms, queries, etc.
Does that make any sense? Any help will be much appreciated.
re-posting it under this category.
I found a thread regarding opening an MDE using some VBS code written by
Jeff Conrad, an Access MVP.
Here's the code:
dim o
set o=createobject ("Access.Application")
o.automationsecurity=1 ' low.
o.opencurrentdatabase "\\server\workgroup\filepath"
o.visible=true
o.usercontrol=true
set o=nothing
The MDE file is in a folder that everyone has authority to access.
I don't want anyone but me or any future DB admins from having access to the
tables and queries, so I found an article in the MSDN library regarding use
of Access Runtime and MDE's to add security. It works on my computer, but I
authored all of the VBA and Macros involved. When I try to open it on other
computers, they get messages similar to what you get in Excel when you try to
open a file with Macros and your macro security is set to high. So, I
incorporated Jeff’s code above to open the db and lower the software
securities at the same time.
The code will open an MDB or MDE directly, but I want to open the MDE file
using Runtime. I just can't figure out how to use the "/runtime" code in the
VBS.
To sum it up, right now I can have people open a MDE in runtime, but they
have to know how to manually change the security settings in their Access
software. Or I can open the MDE directly with the security already lowered,
but they can access the tables, forms, queries, etc.
Does that make any sense? Any help will be much appreciated.