View Full Version : Hit a wall, Stuck


alguzman
09-18-2001, 07:19 AM
I have a form with a subform. the main form has company Id(key feild) with other information and a empty txtbox I put in. The subform is linked by company ID but also have employee ID(key feild) and employee name.

What I want to do is on the main form's txtbox put in the employees id from the subform and hit enter, then the that employees's individual employee form opens up.

Any help!!!

Jack Cowley
09-18-2001, 07:54 AM
In the EmployeeID field in the subform put code similar to this on the On Click or On Dbl Click event:

DoCmd.OpenForm "frmEmployees", , ,"[EmployeeID] = " & Me.EmployeeID

Then a click or double click in the EmployeeID field will open the Employee form to the correct Employee. Be sure and change the fields above to the ones you use in your database.

alguzman
09-18-2001, 08:13 AM
Thank you it worked...:-)

Rich
09-18-2001, 12:03 PM
Glad to see you back_Jack. Hope you where untouched by the recent lunancy.