LittleNick
Technical User
Hi,
I am not sure I post this in the right forum. Here is the problem I am facing:
I have an Order form that have records group by an unique order#. Whenever I select by double clicking a record, the entire set of records with the same order# will be copy into a temporary SQL table tblprocessing, and another form open displaying the set of record from tblprocessing for adding or editing data. Once I am done editing, the new updated data will be copying back to a tblOrdercomplete. Every time I double click to select a record, it also run a sql delete to clear the temporary table tblprocessing so that I do not have old data mixed with new one. The process is working fine if I am the only user. But if multiple users start to select a record from the Order form it will say something like "can't update while other user...". I can understand why it is displaying this message, because if I select a record, it then try to delete tblprocessing then copy new record into tblprocessing, but since the data in tblprocessing is currently used by another user I can not delete them. Now my question is how can I rebuilt this in a way multiple users can process the records (update and delete) without conflict.
I am currently trying to add the userid may in the tblprocessing so that if I delete records, I only delete the ones that have the corrresponding userid without trying to delete other ones, but don't know if this would work. I just want to see if anyone has any suggestion and advice on how to tackle the problem.
Any suggestion will be greatly appreciated.
I am not sure I post this in the right forum. Here is the problem I am facing:
I have an Order form that have records group by an unique order#. Whenever I select by double clicking a record, the entire set of records with the same order# will be copy into a temporary SQL table tblprocessing, and another form open displaying the set of record from tblprocessing for adding or editing data. Once I am done editing, the new updated data will be copying back to a tblOrdercomplete. Every time I double click to select a record, it also run a sql delete to clear the temporary table tblprocessing so that I do not have old data mixed with new one. The process is working fine if I am the only user. But if multiple users start to select a record from the Order form it will say something like "can't update while other user...". I can understand why it is displaying this message, because if I select a record, it then try to delete tblprocessing then copy new record into tblprocessing, but since the data in tblprocessing is currently used by another user I can not delete them. Now my question is how can I rebuilt this in a way multiple users can process the records (update and delete) without conflict.
I am currently trying to add the userid may in the tblprocessing so that if I delete records, I only delete the ones that have the corrresponding userid without trying to delete other ones, but don't know if this would work. I just want to see if anyone has any suggestion and advice on how to tackle the problem.
Any suggestion will be greatly appreciated.