Results 1 to 3 of 3
  1. #1
    drmannete is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    2

    Running VBA even when a database opens in protected view

    I new to VBA. I wrote a code in open event of a form to track all the users entering a database. For this I made a form which creates a new record as soon as I open the database and logs it in a table. I used an Autoexec macro to open the form on opening the database. The database is in a shared network drive. It works perfectly when I try it, but when someone else tries it for the first time, it opens in protected mode and does not create a new record. When they enable content, it works fine later.

    We don’t want people to be able to enter the database without their name logged. Can I do anything to run the Macro or open the form even when the file is in protected mode? Or anything else I can do? Please suggest.

    I am using Access 2010.



    Thanks!

  2. #2
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    You are going to want to look at splitting the database, with a backend and front end. The front end will ultimately be housed on each PC, while the backend remains on the network share, and it is where all the data is stored. This will resolve the problems of multiple users accessing the same file. I will find a forum link that is given out frequently around here and post it.

  3. #3
    drmannete is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    2
    The link would be great. Thanks for the reply!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 09-21-2012, 05:12 PM
  2. Replies: 6
    Last Post: 08-07-2012, 02:44 PM
  3. linking table in a password protected database
    By bdaniel in forum Programming
    Replies: 1
    Last Post: 01-04-2012, 01:25 AM
  4. Replies: 3
    Last Post: 05-28-2011, 09:54 PM
  5. Form opens table in datasheet view
    By franklbl in forum Forms
    Replies: 9
    Last Post: 03-23-2011, 09:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums