... If someone start the program, the program removes first all locks of that PC. The records are indeed locked if the program have crashed. After restarting the program, all locks are removed. At the moment, I'm modifiying my function, so it look for all users that are connected with the database. ...