Ok let me see if I can lay this out
Forms Involved:
frm_MainMenu with a subform sfrm_Clients
pfrm_AddClientDuplicateCheck
So pfrm_AddClientDuplicateCheck is opened from a button on the sfrm_Clients subform. The frm_MainMenu and sfrm_Clients remain open but in the background. There are three text boxes that help me filter records to check if a client already exists. This part is working great.
Now lets say my filter results in 5 records that match the criteria, say five people with the first name John, Each of those has a unique ClientId,
I have the following code on a button beside each result as this is a continuos form
This successfully filters the sfrm_Clients to show only the record for the corresponding client in the pfrm_AddClientDuplicateCheck form.
Unfortunately that is not exactly what I want to do. Instead of filtering the form and showing 1 of 1 records I want to go to that specific record but still have all of the records available to me with out having to clear the filter.
I have done quite a bit of reading on this subject but it all seems to confuse me. If someone could give me a little guidance in this I would be very greatful
Thank you in advance
Forms Involved:
frm_MainMenu with a subform sfrm_Clients
pfrm_AddClientDuplicateCheck
So pfrm_AddClientDuplicateCheck is opened from a button on the sfrm_Clients subform. The frm_MainMenu and sfrm_Clients remain open but in the background. There are three text boxes that help me filter records to check if a client already exists. This part is working great.
Now lets say my filter results in 5 records that match the criteria, say five people with the first name John, Each of those has a unique ClientId,
I have the following code on a button beside each result as this is a continuos form
Code:
Private Sub cmdGoToClientRecord_Click()
Forms!frm_MainMenu!sfrm_Clients.Form.Filter = "ClientID = " & Me.clientid
Forms!frm_MainMenu!sfrm_Clients.Form.FilterOn = True
DoCmd.Close
End Sub
This successfully filters the sfrm_Clients to show only the record for the corresponding client in the pfrm_AddClientDuplicateCheck form.
Unfortunately that is not exactly what I want to do. Instead of filtering the form and showing 1 of 1 records I want to go to that specific record but still have all of the records available to me with out having to clear the filter.
I have done quite a bit of reading on this subject but it all seems to confuse me. If someone could give me a little guidance in this I would be very greatful
Thank you in advance