NinjaTurtle
10-30-2002, 01:34 AM
dear,
i have one proble, let's giv u all some senario 1st:
i want to generate a Invoice number, so after user fill in the details and press submit, system will generate a auto number from a table call "Invoice_SerialNumber" and then get a serial number then add with the rest details into a Table called "Invoice", then add one(+1, number increase) into table called "Invoice_SerialNumber", there is same Serial number happen when there are 2 or more users press the submit button at the same time!!!
ofcos invoice number is not allow same number! how 2 solve this problem???? any function or key to lock the table after the transaction is done, then release the table to the following transaction? or the best is Queue the transaction!!!
i have one proble, let's giv u all some senario 1st:
i want to generate a Invoice number, so after user fill in the details and press submit, system will generate a auto number from a table call "Invoice_SerialNumber" and then get a serial number then add with the rest details into a Table called "Invoice", then add one(+1, number increase) into table called "Invoice_SerialNumber", there is same Serial number happen when there are 2 or more users press the submit button at the same time!!!
ofcos invoice number is not allow same number! how 2 solve this problem???? any function or key to lock the table after the transaction is done, then release the table to the following transaction? or the best is Queue the transaction!!!