I have a table where all serial no. are kept. Suppose one of them is Bill_serial_no. when two users are simalteneusly making bills the Bill no is same for both the bills in the bill table, but the Bill_serial_no gets incremented by 2. I have tried the following code :
dim cn as ADODB.Connectio n
dim rs as ADODB.Recordset
sqtxt="select * from SerialTable"
set rs=New ADODB.RecordSet
With rs
.CursorType = adOpenDynamic
.LockType = adLockPessimist ic
.ActiveConnecti on = cn
.Open sqtxt
End With
Please Help Me.
dim cn as ADODB.Connectio n
dim rs as ADODB.Recordset
sqtxt="select * from SerialTable"
set rs=New ADODB.RecordSet
With rs
.CursorType = adOpenDynamic
.LockType = adLockPessimist ic
.ActiveConnecti on = cn
.Open sqtxt
End With
Please Help Me.
Comment