Access 2007, VBA, find record on form. The database tracks PINs (Property Index Numbers) and related data about the property.
I have a Modal form "Edit_Frame_FRM". It acts as a frame containing two sub forms, "Edit1_Frm" and "Edit2_Frm".
I have a button in each row of the "Edit1_Frm. You click the button on Edit1_Frm and it grabs the PIN from that record and finds the corresponding PIN in Edit2_FRM.
Both forms are always open side-by-side. Please see attached screen snap.
The following code from PBaldy works perfect.
DoCmd.OpenForm "Edit2_FRM", , , "PIN = '" & Me.PIN & "'"
Except it opens a new form. I can't figure out how to make it find the record in the already open Edit2_FRM.
Thanks
Fred
I have a Modal form "Edit_Frame_FRM". It acts as a frame containing two sub forms, "Edit1_Frm" and "Edit2_Frm".
I have a button in each row of the "Edit1_Frm. You click the button on Edit1_Frm and it grabs the PIN from that record and finds the corresponding PIN in Edit2_FRM.
Both forms are always open side-by-side. Please see attached screen snap.
The following code from PBaldy works perfect.
DoCmd.OpenForm "Edit2_FRM", , , "PIN = '" & Me.PIN & "'"
Except it opens a new form. I can't figure out how to make it find the record in the already open Edit2_FRM.
Thanks
Fred