gojets1721
Registered User.
- Local time
- Today, 02:55
- Joined
- Jun 11, 2019
- Messages
- 430
I have a tabular form which lists a bunch of customer complaints. For each record, there's an 'open' button to view that specific record in a more detailed form. The below code for the open button works to pull up that record in the separate form, but it filters down to that exact record. Ideally, I would want to still be able to bounce around from record to record in the detailed form after it is pulled up. Any suggestions?
Code:
Private Sub txtOpen_Click()
On Error GoTo txtOpen_Click_Err
DoCmd.OpenForm "frmDetails", , , "[ComplaintNumber] =" & Nz(Me.[ComplaintNumber], 0) & ""
DoCmd.Close acForm, "frmComplaintList"
txtOpen_Click_Exit:
Exit Sub
txtOpen_Click_Err:
MsgBox "Error #" & Err.Number & " - " & Err.Description, , "Error"
Resume txtOpen_Click_Exit
End Sub