I have two forms A and B both of which are open. Form A is the details of a client and form B is a datasheet of all the clients. What I was hoping to do is select a client on form B and then by clicking a button(or double clicking the client if its possible) have form A's record set to the matching client. For reasons I won't go into I don't want to open/reopen form A with the corresponding record but to just set the recod.
I've tried
' Find the record that matches the control.
Dim rs As Object
Set rs = Forms!Main_form!Client_Subform.Recordset.Clone
'Just hardcode a value to see if working
rs.FindFirst "[Client_Id] = 21"
If Not rs.EOF Then Forms!Main_form!Client_Subform.Bookmark = rs.Bookmark
and get the error "Object doesn't support this property or method".
How should I go about achieving this??????????