From Referring to Items on a Sub-Form, you could also shorten it a little further with :
This is example of appreciating where dot and bang make most sense.
I would also suggest that if you are going to use this new procedure for the subform (and there's really no reason why you wouldn't), then it would makes sense to use that same procedure for the other form too - to provide consistentcy.
Code:
Forms!frmLoans.sfrmAppraisals!Recordset.FindFirst "AppraisalID = " & Me.txtAppraisalID
I would also suggest that if you are going to use this new procedure for the subform (and there's really no reason why you wouldn't), then it would makes sense to use that same procedure for the other form too - to provide consistentcy.
Code:
Private Sub Command4_Click()
DoCmd.OpenForm "frmLoans"
With Forms!frmLoans
.Recordset.FindFirst "LoanID = " & Me.txtLoanID
.sfrmAppraisals!Recordset.FindFirst "AppraisalID = " & Me.txtAppraisalID
End With
End Sub
Comment