I am trying to use one subreport in two different main reports.
The DB is about facilities inventory in a university.
The subreport is showing PCs info, and the 1st main reports showing administrative departments and another showing academic departments.
I use yes/no field to mark academic departments. So, I use this filed to display PCs info for academic dep by adding the following to the where clause in the subreport:
[Reports]![FirstMainReport]![Academic].
Until this point it is working.
I am trying to make the where clause to work with this:
WHERE (((Department.Academic)=[Reports]![FirstMainReport]![Academic] Or (Department.Academic)=[Reports]![SecondMainReport ]![Academic]));
Then I can use the same subreport in the 2d main report to show PCs info for administrative departments.
Is that possible?
The DB is about facilities inventory in a university.
The subreport is showing PCs info, and the 1st main reports showing administrative departments and another showing academic departments.
I use yes/no field to mark academic departments. So, I use this filed to display PCs info for academic dep by adding the following to the where clause in the subreport:
[Reports]![FirstMainReport]![Academic].
Until this point it is working.
I am trying to make the where clause to work with this:
WHERE (((Department.Academic)=[Reports]![FirstMainReport]![Academic] Or (Department.Academic)=[Reports]![SecondMainReport ]![Academic]));
Then I can use the same subreport in the 2d main report to show PCs info for administrative departments.
Is that possible?