I tried to get this figured out a few months ago but it never worked.
I am specifying the record set within the main form, and after the correct recordset is brought in for the subform, I want to then change the current record within the subform, not just stay at the first record found in the set within the subform.
I can successfully set the focus on a field within the subform (from the code in the main form) -- well, it says it's successful.
BUT when I try to then perform a FindRecord (on the line immediately follwing while still in the main form's AfterUpdate code), it fails (and remains at the first record in the record set). VERY frustrating. :-(
with a 2162 error "A macro set to one of the current field's properties failed because of an error in a FindRecord action argument".
Any thoughts and/or suggestions to make this work?
Thanks for all help provided.
I am specifying the record set within the main form, and after the correct recordset is brought in for the subform, I want to then change the current record within the subform, not just stay at the first record found in the set within the subform.
I can successfully set the focus on a field within the subform (from the code in the main form) -- well, it says it's successful.
Code:
Me.subformname.Form![subformfield].SetFocus
BUT when I try to then perform a FindRecord (on the line immediately follwing while still in the main form's AfterUpdate code), it fails (and remains at the first record in the record set). VERY frustrating. :-(
Code:
DoCmd.FindRecord subformfield
with a 2162 error "A macro set to one of the current field's properties failed because of an error in a FindRecord action argument".
Any thoughts and/or suggestions to make this work?
Thanks for all help provided.