Results 1 to 4 of 4
  1. #1
    JonMulder is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    24

    Procedure for Blocking Multiple Users?

    Greetings,

    On a daily basis, I need to have exclusive use of the database to import several tables from an Oracle server and update queries. I do have a function that returns the number of current users. If that number is "1", then I know I'm OK to begin the import (which takes about 15 minutes). However, I want to prevent other users from accessing the tables during that time. I thought I could do it with a public variable ("pubbooBlockUsers") but now realize that the public variable is created for each user so that won't work.

    I have an "IsOpen" function that can check if an Access Table Object or Query Object is currently open, and I can skip that query or table. But I need to update ALL the Oracle tables and Access queries.

    I have only about twenty staff hitting the database through out the day, so generally, it's in single-user status. Nonetheless, I'd like to get code in place for those few times when I'm updating and a user tries to get in.

    Can anyone direct me to some code snippet that would prevent users from accessing the tables and queries?

    Thanks for any help!

    Jonathan Mulder
    Engineering Geologist
    California Department of Water Resources

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Denis has a lot of tips here
    http://www.datawright.com.au/access_...tip_boot_users

    Just curious though, why do you import tables? I'm sure you have reasons.

  3. #3
    JonMulder is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    24
    Thanks Denis! I went to your link and that looks like it'll do the trick.

    The Oracle tables are about 150 miles away located in Sacramento and are quite large. There are ~35,000 water well records and ~1.2 million water level measurement records. I've tried to link down to the tables, but it really slows down.

    Your link also mentioned something about needing exclusive access for "compact and repair". Right now, I have the database set to compacting on closing. Will that be a problem with multi-users? I haven't noticed any problem

    Jonathan Mulder

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I'm not Denis, I'm just aware of the routine he has for getting users out of the system.


    You could try googling to see what others are doing re Compact and Repair.
    Denis is known as SydneyGeek in forums. He's a good guy and will answer issues if you contact him.
    This is his homepage http://www.datawright.com.au/index.htm
    Good luck.
    Last edited by orange; 04-04-2013 at 05:04 PM. Reason: additional info

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

Similar Threads

  1. Multiple Users
    By JMac in forum Access
    Replies: 1
    Last Post: 05-08-2012, 12:14 AM
  2. Multiple Users
    By alyon in forum Access
    Replies: 5
    Last Post: 05-01-2012, 09:30 AM
  3. Multiple Users :)
    By greatfallz in forum Access
    Replies: 1
    Last Post: 08-21-2011, 02:40 PM
  4. multiple users
    By ramkitty in forum Access
    Replies: 1
    Last Post: 03-22-2010, 07:15 PM
  5. How to have multiple users
    By Eric1066 in forum Access
    Replies: 5
    Last Post: 11-19-2009, 05:14 AM

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