I would like to open a sub form on a specific record but can’t seam to get the syntax right.
The main form is: frm_Index_Employee_HR
The sub-form is: frm_Emp_Details_Current
The App_ID field is the record I want to open where it equals the App_ID field of the form I am on when running the code.
DoCmd.OpenForm "frm_Index_Employee_HR", , , "App_ID=" & App_ID
Successfully opens the main form but does not go to the correct record on the sub-form
DoCmd.OpenForm "frm_Emp_Details_Current", , , "App_ID=" & App_ID
Successfully opens the correct record but not as a sub-form within frm_Index_Employee
I have tried various combinations of syntax Like: forms!frm_Index_Employee_HR!frm_Emp_Details_Curren t
To say sub-form within the main form but unsucsessfully.
Can anyone help with how this should look.
Thanks