An '.mdb' file is a database, which you shouldn't open and close like a normal file. Use the database's API functions to connect, disconnect and to work with it.
Multiple people can connect to a database simultanously, although you may sometimes have to wait if a particular table (or row) is temporarily locked.