Hello Everyone,
So I have 2 forms, nearly identical to each other. On the first form the user finds the record they want by the field "LoanID" and if they wish to edit the loan information they click a button which opens up the second form.
What I need is for the second form to open up to the same record that the first form is still on (first form does not close when button is clicked) based on its LoanID. How do I do that?
Below is some code I was trying to get to work, but couldn't. Any help is much appreciated, thank you.
Dim strFieldName As String
Dim strForm As String
strForm = "frm_FormTwo"
strFieldName = ([Me].[LoanID] = [frm_FormOne].[LoanID])
DoCmd.OpenForm strForm, , , strFieldName
So I have 2 forms, nearly identical to each other. On the first form the user finds the record they want by the field "LoanID" and if they wish to edit the loan information they click a button which opens up the second form.
What I need is for the second form to open up to the same record that the first form is still on (first form does not close when button is clicked) based on its LoanID. How do I do that?
Below is some code I was trying to get to work, but couldn't. Any help is much appreciated, thank you.
Dim strFieldName As String
Dim strForm As String
strForm = "frm_FormTwo"
strFieldName = ([Me].[LoanID] = [frm_FormOne].[LoanID])
DoCmd.OpenForm strForm, , , strFieldName