By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,635 Members | 2,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,635 IT Pros & Developers. It's quick & easy.

login to access - vba runs as admin user

P: 1
I am currently working on an ms access application for a large insurance
company which generates reports for the user after the user inputs/select
some data....

Unfortunately the application has already been built - and till now we used
to run the application/reports by logging in as admin.. however, we now want
that users login to the database as a 'user' with limited privileges- but
the vba code, which is locked to run with privileges as admin.

Our plan is users sign onto this ms access application/database as a user
with few privilegese on the underlying tables/forms..all the tables and
forms and vba modules are owned by admin....we dont want the user to be able
to view most of the tables but we want the entire vba code to run with the
privleges as admin.. how do we do that.. the user logs on to ms acesss db as
a regular user, with privileges on very few tables/forms.. and the background
vba code which generates the code runs succesfully with privlegse of the
admin user.. is that possible..we want to allow the user to keep this ms
access database/application on any directory they wish on their local pc.

thanks again,
chandran gangadharan
Toronto, Canada
Mar 8 '08 #1
Share this Question
Share on Google+
2 Replies


ADezii
Expert 5K+
P: 8,638
I am currently working on an ms access application for a large insurance
company which generates reports for the user after the user inputs/select
some data....

Unfortunately the application has already been built - and till now we used
to run the application/reports by logging in as admin.. however, we now want
that users login to the database as a 'user' with limited privileges- but
the vba code, which is locked to run with privileges as admin.

Our plan is users sign onto this ms access application/database as a user
with few privilegese on the underlying tables/forms..all the tables and
forms and vba modules are owned by admin....we dont want the user to be able
to view most of the tables but we want the entire vba code to run with the
privleges as admin.. how do we do that.. the user logs on to ms acesss db as
a regular user, with privileges on very few tables/forms.. and the background
vba code which generates the code runs succesfully with privlegse of the
admin user.. is that possible..we want to allow the user to keep this ms
access database/application on any directory they wish on their local pc.

thanks again,
chandran gangadharan
Toronto, Canada
the vba code, which is locked to run with privileges as admin.
What exactly do you mean by this?
Mar 9 '08 #2

NeoPa
Expert Mod 15k+
P: 31,495
I think I understand what you mean, but that's not really what you want ;)
The code runs as whatever the user is. It is not separate from the user.

What you want is to restrict access to the underlying tables, queries and objects and only allow access through your menu system. Yes?

If so, then look in the Tools / Startup... menu item for various options. Be warned though, it is possible to lock yourself out of your own database so :
  1. Be careful with your choices.
  2. Keep a backup of the state before you made any changes until you are 100% happy that you have what you require.
Mar 10 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.