AshikHusein
Registered User.
- Local time
- Today, 16:14
- Joined
- Feb 7, 2003
- Messages
- 147
Hello all!
I have designed this multi-user application in which two users are not supposed to ever view the same client record. It works pretty efficiently except in the mornings when all users log on almost at the same time and this challenges the logic with the result that two users sometimes view the same record. I have asked the users to enter an "X" in the notes field( which I have called Notesfield1) and if they cannot enter an "X" it would mean that somone else is also viewing that very same record.
Now I understand that a record locks (for pessimistic locking), when a record is being edited through a form (correct me if I am wrong here) and I want to program a "sendkey" type of command which will add an "X" automatically to Notesfield1 and then delete it immediately through a "sendkey" type of command. If the record is locked, the program will fall through the error routine to the next record which is not being viewed by anyone else.
The idea is that the users should not have to type an "X" and the program shld do it automatically.
Could anybody help me in with the syntax of how I could "sendkey" through Visual Basic. My book gives me very little info about "sendkey". Thanks
I have designed this multi-user application in which two users are not supposed to ever view the same client record. It works pretty efficiently except in the mornings when all users log on almost at the same time and this challenges the logic with the result that two users sometimes view the same record. I have asked the users to enter an "X" in the notes field( which I have called Notesfield1) and if they cannot enter an "X" it would mean that somone else is also viewing that very same record.
Now I understand that a record locks (for pessimistic locking), when a record is being edited through a form (correct me if I am wrong here) and I want to program a "sendkey" type of command which will add an "X" automatically to Notesfield1 and then delete it immediately through a "sendkey" type of command. If the record is locked, the program will fall through the error routine to the next record which is not being viewed by anyone else.
The idea is that the users should not have to type an "X" and the program shld do it automatically.
Could anybody help me in with the syntax of how I could "sendkey" through Visual Basic. My book gives me very little info about "sendkey". Thanks