From Microsoft Business Solutions - Great Plains v8.00 onwards the system has included a User Login Activity window which can be used by a user to remove their own login record after it has been left stranded by an abnormal termination of the application (read "crash").
Some system administrators would prefer for this function to be disabled so they can monitor the number of times users are stranded and then remove them via the normal Tools >> Setup >> System >> User Activity method.
NOTE: If you just remove the record from the ACTIVITY table using SQL, this will not cleanup other batch and transaction activity records for the user.
This very simple VBA example uses the Window_BeforeModalDialog and Window_AfterModalDialog to automatically say "No" to the original dialog and then display a new message to display why the login failed.
The code for this customisation is also included (but commented out) in the VBA - Preventing Users from logging into multiple companies Example.
Example code for v8.0, v9.0 & v10.0 is attached at the bottom of the article.
Please see the "Installation Instructions.txt" file in each version's archive for more information.
Microsoft Dynamics GP uses concurrent licensing which provides for a maximum number of users logged into
This is very good work to prevent users from log in into more than one company
PLEASE READ BEFORE POSTING
Please only post comments relating to the topic of this page.
If you wish to ask a technical question, please use the links in the links section (scroll down, on right hand side) to ask on the Newsgroups or Forums. If you ask on the Newsgroups or Forums, others in the community can respond and the answers are available for everyone in the future.