I think you can solve this issue with a Combobox and a Calendar Control both attached to Textboxes on the Main Form header Section. Do the following:
- Create a Total Query on the Employee Name field from the Employees table, sort the Employee Name in Ascending Order.
- Design a Form with the Employees Table with all required information and save the form with the name frmEmp_Sub.
- Open a New Form in Design View.
- Select the Combobox Control (while the Wizard button is in selected state) and draw a Combobox on the header of the Form, select the Total Query created in step-1 as source for the combobox.
- Name the Combobox control as cboNames.
- Create a second textbox for entering date and name the textbox as attDate.
- Now, drag the frmEmp_Sub Form and drop it in the Detail Section of the Form as a Sub-Form.
- While the frmEmp_Sub is in selected state display it's Property Sheet.
- On the Link Child Field Property type cboNames;attDate.
- On the Link Master Field property type the above fields' corresponding names separated with a semi-colon.
- Save the Form with the name frmMain.
- Open the frmMain in normal view and enter an Employee's name and a date in the header controls.
- If both these information is already available in the Employees table then it will display the details immediatly on the frnEmp_Sub. If not then you can create a new record in the sub-form.