spartansFC
Programmer
Hi
I've got 2 bound subforms on a unbound form, i've created a filter search form based of Allen Browns example. The 1st subform filters perfectly and i've got running subtotals. I now need to somehow filter the 2nd subform based of the criteria in subform1.
What i would like to happen is the user selects a club name and then a week commencing date, subform1 filters to show the total number of children attending the club on that particular week. I also need to show if there is enough staff cover which is where subform2 comes into it, the filter should filter subform2 so that i can run some subtotals to make sure each club has enough cover per day.
It's all a bit confusing, not sure if i have to link both subforms together, not sure how to do this. There is only 2 criteria that i need to filter by so far, they are
dteSessionsDates
clubName
Each subform is created from a query and they both have the relevant info to link together.
dteSessionDates
dteRotadteSessions
lngRotaClubsID
lngClubsID
Is it possible to filter the 2nd subform?
Mikie
I've got 2 bound subforms on a unbound form, i've created a filter search form based of Allen Browns example. The 1st subform filters perfectly and i've got running subtotals. I now need to somehow filter the 2nd subform based of the criteria in subform1.
What i would like to happen is the user selects a club name and then a week commencing date, subform1 filters to show the total number of children attending the club on that particular week. I also need to show if there is enough staff cover which is where subform2 comes into it, the filter should filter subform2 so that i can run some subtotals to make sure each club has enough cover per day.
It's all a bit confusing, not sure if i have to link both subforms together, not sure how to do this. There is only 2 criteria that i need to filter by so far, they are
dteSessionsDates
Code:
SELECT tblOccupancyBuildNewPerm.dteSessionDates FROM tblOccupancyBuildNewPerm GROUP BY tblOccupancyBuildNewPerm.dteSessionDates ORDER BY tblOccupancyBuildNewPerm.dteSessionDates DESC;
clubName
Code:
SELECT tblClubs.strClubName FROM tblOccupancyBuildNewPerm INNER JOIN tblClubs ON tblOccupancyBuildNewPerm.lngClubsID=tblClubs.lngClubsID GROUP BY tblClubs.strClubName;
Each subform is created from a query and they both have the relevant info to link together.
dteSessionDates
dteRotadteSessions
lngRotaClubsID
lngClubsID
Is it possible to filter the 2nd subform?
Mikie