When users simultaneously run MYOB Accounting Plus on two or more workstations and send transactions to a shared company file at the same time, it would be possible for one person to overwrite the data of another if special precautions were not in place. MYOB Accounting Plus ensures that only one person can access the company file at a time by
locking the file to keep others out until the first user has finished.
When a user attempts to send transaction data to the company file, MYOB Accounting Plus checks for the presence of a
lock file in the same folder as the company file. Then, if no lock file is present, MYOB Accounting Plus creates a lock file which allows only that user, but no other, to write data to the company file. When the data has been written, MYOB Accounting Plus removes the lock file.
There are also times when only one person should have access to the company file to perform important maintenance procedures, such as a backup, printing end-of-period reports or optimising the file. Again, a lock file prevents all but a single user from performing maintenance tasks. For more information, see:
Multi-user file locking ensures that changes cannot be made in some windows while related data is being changed by another user.
For example, a situation could arise where a user is recording information in a sales transaction window while another user is changing details of the customer card being used in the sales transaction.
In such a situation, multi-user file locking disallows changes being saved in one of the windows until the changes have been saved in the other window.
If you would like to know when another user has changed data in a window, go to the
Setup menu, choose
Preferences, click the
System tab, and mark
Automatically Refresh Lists When Information Changes. Now, if another user changes information you are viewing, MYOB Accounting Plus closes your window. When you reopen it, the data is updated.
If you have been prevented from accessing the company file, you can identify which user is locking you out. To do this, go to a computer that has access to the company file and view the list of active users (go to the
File menu and choose
Active Workstations).
Although several users can share a company file for entering daily transactions, there are times when only one user should have access. Many of these tasks are file maintenance procedures such as backing up, and checking and optimising the company file. For example, optimising a company file rearranges its internal structure, so you need to ensure the file is not being accessed while this process is taking place. Other single‑user tasks are part of standard bookkeeping practice. For example, when you print a report, you do not want anybody to change data that will appear in the report while it is being printed.
To check whether any other users are currently using the company file before you set a single-user lock, go to the
File menu and choose
Active Workstations.
Single-user file locking prevents all but the first logged-in user from accessing a shared company file—other users cannot even log in. To enable single-user access after starting MYOB Accounting Plus, click
Single-user access in the
Sign-on window.
MYOB Accounting Plus displays a File is busy; access denied message when another user is accessing a shared company file, and you both try to save a transaction or write data. When you see this message, wait a few moments for the other transaction to finish and for MYOB Accounting Plus to delete the lock file, and then click
Retry.
If the power fails, or you switch off your computer while MYOB Accounting Plus is running, or your system crashes, MYOB Accounting Plus is unable to delete the lock file. You will need to delete the lock files manually. The following situations can cause lock files to accumulate in the folder where the company file is kept, resulting in various error messages when you try to open a company file:
There are more than 10 lock files—the maximum permitted—in the folder where the company files are kept. This can occur legitimately if there are more than 10 company files in the folder, 10 of which are open simultaneously, In this case, opening an 11th file would create an illegal 11th lock file.
Any of the above messages may mean that there are old lock files cluttering the folder where you store the company file. You need to delete the lock files before MYOB Accounting Plus will run correctly.