L
lee12
Guest
I have 2 table in my db. One contains the name of all employees and is called Employees and consists of 2 fields, ID (Autonumber,PK) and EmployeeName(Text).
The other contains details of holidays booked by each employee. This is called RestDays and has 4 fields, EmpName(Text), RestDate (Short Date), Cover1 (Text) and Cover2 (Text).
What I want to be able to do is choose an employee using a combo box and then have all that particular employees holidays listed for me, firstly as a table or subform if I press a particular button on the switchboard and as a report if I press another.
I have managed to do the above with a query where the name is entered into a dialog box(parameter box?) and in a subform where the employee is selected using record selectors and a text box in the main form but I cannot do it with a combo. If possible could this be done without using any VB code, just the access controls etc.
Thanks
The other contains details of holidays booked by each employee. This is called RestDays and has 4 fields, EmpName(Text), RestDate (Short Date), Cover1 (Text) and Cover2 (Text).
What I want to be able to do is choose an employee using a combo box and then have all that particular employees holidays listed for me, firstly as a table or subform if I press a particular button on the switchboard and as a report if I press another.
I have managed to do the above with a query where the name is entered into a dialog box(parameter box?) and in a subform where the employee is selected using record selectors and a text box in the main form but I cannot do it with a combo. If possible could this be done without using any VB code, just the access controls etc.
Thanks