Hello,
I have a button [cmdPatientfind] which is beside a combo box [cboPatientfind]. The user selects the patient ID (integer) from the combo box, then presses the button. The user is then taken to another form [frm_Patients] which is filtered to the selected patient ID.
However once they view the filtered record, the user can't scroll forward or backward to review the other records around it. Is there a way to alter the code behind my button to allow this? The code I currently have is below:
Thanks for your help.
I have a button [cmdPatientfind] which is beside a combo box [cboPatientfind]. The user selects the patient ID (integer) from the combo box, then presses the button. The user is then taken to another form [frm_Patients] which is filtered to the selected patient ID.
However once they view the filtered record, the user can't scroll forward or backward to review the other records around it. Is there a way to alter the code behind my button to allow this? The code I currently have is below:
Code:
Private Sub cmdPatientfind_Click()
Dim stLinkCriteria As String
stLinkCriteria = "tpPatient = " & Me.cboPatientfind
stDocName = "frm_Patients"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Comment