icemonster
Registered User.
- Local time
- Today, 08:12
- Joined
- Jan 30, 2010
- Messages
- 502
so basically, i have this code and it works fine, it's just that it made me realize something,
what am thinking is, after the rs.bookmark = rs.lastmodified i am curios, what would happen, if 10 users clicked the same button at the same time?
Code:
Set rs = CurrentDb.OpenRecordset("qry_PATIENTDETAILSBILLING1")
rs.AddNew
rs.Fields("PLASTNAME").Value = Me.txtPLastName
rs.Fields("PFIRSTNAME").Value = Me.txtPFirstName
rs.Fields("PSSN").Value = Me.txtPSSN
rs.Fields("PSEX").Value = Me.txtPSex
rs.Fields("PDOB").Value = Me.txtPDOB
rs.Fields("PSTREET1").Value = Me.txtPStreet1
rs.Fields("PSTREET2").Value = Me.txtPStreet2
rs.Fields("PPHONE1").Value = Me.txtPPhone1
rs.Fields("PPHONE2").Value = Me.txtPPhone2
rs.Fields("PCITY").Value = Me.txtPCity
rs.Fields("PSTATE").Value = Me.txtPState
rs.Fields("PZIPCODE").Value = Me.txtPZipCode
rs.Fields("PHHA").Value = Me.cboClientID
rs.Fields("PADDEDBYUSERID").Value = gbl_UserID
rs.Fields("PADDEDBYUSER").Value = gbl_User
rs.Fields("PADDEDONDATETIME").Value = Now()
rs.Update
rs.Bookmark = rs.LastModified
lngPatientID1 = rs!PATIENTID
rs.Close
Set rs = Nothing
lngPatientID2 = lngPatientID1
Set rs = CurrentDb.OpenRecordset("tbl_PATIENTBILLING")
rs.AddNew
rs.Fields("BPATIENTID").Value = lngPatientID2
rs.Fields("BBILLTYPEID").Value = Me.cboPBillType
rs.Fields("BINSURANCENO").Value = Me.txtInsuranceNo
rs.Update
rs.Close
Set rs = Nothing
Me.pgPatientList.Visible = True
Me.pgPatientList.SetFocus
Me.lstPatient.SetFocus
Me.lstPatient = lngPatientID
Me.pgAddNewPatient.Requery
startPatientList
what am thinking is, after the rs.bookmark = rs.lastmodified i am curios, what would happen, if 10 users clicked the same button at the same time?