login to access - vba runs as admin user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gangac
    New Member
    • Mar 2008
    • 1

    login to access - vba runs as admin user

    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
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Originally posted by gangac
    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?

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32656

      #3
      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.

      Comment

      Working...