Under Form on the ALL tab i see the word Filter. I don't know if this is what
you mean. However you said to create it in the subform RECORD SOURCE. I have
no idea how to do that unless it is a query. And i already have a query in
the subform Record Source:
SELECT Employee.SSN, Employee.HireDate, Employee.DepartmentID,
sum(sicktime.sicktime) AS Total_SickTime, sum(personaltime.personaltime) AS
Total_PersonalTime, sum(vacationtime.vacationtime) AS Total_VacationTime
FROM ((Employee INNER JOIN personaltime ON
personaltime.employeeid=employee.employeeid) INNER JOIN vacationtime ON
Employee.EmployeeID=vacationTime.EmployeeID) INNER JOIN SickTime ON
Employee.EmployeeID=SickTime.EmployeeID
WHERE employee.employed=true
GROUP BY employee.SSN, Employee.hiredate, Employee.DepartmentID;
Is there something this process is called so i can look it up on the
internet. I have a book but it does not go into details about this that i can
tell.
Thanks! Please explain a little more for me. Thanks!
Ofer Cohen said:
Create a filter in the SubForm Record source that refer to the combo in the
main form
Select * From TableName Where department = Forms![MainFormName]![department
ComboName]
On the after update event of the department combo you need to refresh the
data in the sub form
Me.[SubFormName].Requery
--
Good Luck
BS"D
jacob said:
A form and subform. They are both linked.
I want to use the main form to determine what is to be displayed in the
subform.
For example, if i select a department from a combo box, i want the list of
employees and employee info to display.
Right now, if i change he departmetn in the combo box, it changes the
department for all the active or current employees. THis is not waht i want.
How do i change this behavior? thanks!