473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

login to access - vba runs as admin user

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
2 3284
ADezii
8,834 Expert 8TB
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
32,556 Expert Mod 16PB
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

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

Similar topics

10
by: TheDD | last post by:
Hello every body, i have to do a news system wich use php/mysql. i need 3 accounts: * a 'reader' who doesn't need to log in to read the news * a 'writer' who can write news in a pending news...
1
by: Homa | last post by:
Hi, I am using a role-based Forms Authentication. I have several directories that have different levels of authorization. When I try to access another directory, the page bounce me back to the...
4
by: nicholas | last post by:
Hi, Got an asp.net application and I use the "forms" authentication mode defined in the web.config file. Everything works fine. But now I would like to add a second, different login page for...
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
1
by: Jakob Lithner | last post by:
When I started a new ASP project I was eager to use the login facilities offered in Framework 2.0/VS 2005. I wanted: - A custom principal that could hold my integer UserID from the database -...
1
by: xcelmind | last post by:
Hello Dev. Guru, I want to at this time introduce myself. I am Stanley Ojadovwa by name. I’m a freelance and a newbie in web application development. I’m currently using ASP as my application...
3
by: Steven Nagy | last post by:
Hi All, I can successfully specify access levels to folders and files with no problem through web.config. In my application I have 2 folders off root: /Admin/ /Members/ When a person tries...
12
by: hotflash | last post by:
Hi Mark et. All, I have a question to see if you can educate me here since this is something new to me as well. I created a login page for the user to login and the ASP will check and redirect...
5
by: Mai Le | last post by:
Hello Experts. Coul you please help me to fix my program. I created a login from with 2 levels. Admin an User. If Admin login will open A form and If User login will open B form I had table...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.