Thank you for your response.
My code does a requery, so the SetFocus method is not
adequate. I implemented the FindFirst method; the
compiler says "Method or data member not found." on the
line:
rst.FindFirst "TakeoffID = '" & intID & "'"
The following references are currently established:
Visual Basic For Applications
Microsoft Access 10.0 Object Library
Microsoft ActiveX Data Objects 2.1 Library
Microsoft DAO 3.6 Object Library
Microsoft Office 10.0 Object Library
Do you know which library I need to add for this method?
Thank you.
Kevin Sprinkel
-----Original Message-----
Unless your code moves to a different record in the main form or requeries
the subform, you should be able to just set focus to the subform control:
Me.[NameOfYourSubformControlHere].SetFocus
If you do something that changes the source of the subform, you will need to
save the primary key value from the subform's record into a variable, and
then FindFirst in its RecordsetClone afterwards.