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