I have a large table that has 8 forms to input the data into the table. The problem I just realized that I have is that I am using these lines of code to close the form that the applicant is working on and go to the next form and go to the record that they were working on. The problem is what if I have two people entering data into the same table at the same time. So i think I need to specify what record to go to and thereby make sure that the data is being entered into the proper record. Any Ideas let me know.
FYI it is a table for new applicants for the office. I think I need to declare a "where" statement and "look-up" or something, for the current record number before I close the form and then tell it to go to that record when it opens the next form. Am I somewhere in the ball park here? Or is there an acSame type expression.
Private Sub NextPage2_Click()
On Error GoTo NextPage2_Click_Err
With CodeContextObject
If (.Ready2 = False) Then
Beep
MsgBox "You must check the box to the left certifying the information on this page as accurate before you can go to the next page.", vbExclamation, "Must Verify Answers"
End
End If
DoCmd.Close acForm, "Application2"
DoCmd.OpenForm "Application3", acNormal, "", "[Ready2]=True", acEdit, acNormal
DoCmd.GoToRecord acForm, "Application3", acLast
' What if there are two people entering an application at the same time, who's information goes where?
Ready2 = False
End With
NextPage2_Click_Exit:
Exit Sub
NextPage2_Click_Err:
MsgBox Error$
Resume NextPage2_Click_Exit