J
jovobas
I've created a database to keep track of applications for disability.
There are four tables involved: tbl_applicants, tbl_applications,
tbl_disabilities and tbl_applications_disabilities (relational table
connecting the application with the disability).
At the end, a report is made per application containing a subreport
with the listed disabilities. The easy part is creating the report so
only those disabilities that were applied for are printed.
The hard part is making it sure every report displays the whole list
of disabilities with the applied ones checked.
So far I've created a query with subquery that looks like this
select * from tbl_disabilities left join (select * from
tbl_applications_disabilities where appl_id=Reports![myreport]!
[application_ID])
which gives me exactly what I want: all disabilities with a reference
if they were applied for.
This is the recordsource for the subreport which is not linked to the
main report.
It works but with one major disadvantage: it is only usable for 1
subreport. Because I need several main reports for different parties,
but all with the same subreport, I'm stuck with making a subreport and
query for each one. Not to mention the maintenance when something
would change.
Is there a more elegant way to achieve my wishes?
Thanks in advance for any insights.
There are four tables involved: tbl_applicants, tbl_applications,
tbl_disabilities and tbl_applications_disabilities (relational table
connecting the application with the disability).
At the end, a report is made per application containing a subreport
with the listed disabilities. The easy part is creating the report so
only those disabilities that were applied for are printed.
The hard part is making it sure every report displays the whole list
of disabilities with the applied ones checked.
So far I've created a query with subquery that looks like this
select * from tbl_disabilities left join (select * from
tbl_applications_disabilities where appl_id=Reports![myreport]!
[application_ID])
which gives me exactly what I want: all disabilities with a reference
if they were applied for.
This is the recordsource for the subreport which is not linked to the
main report.
It works but with one major disadvantage: it is only usable for 1
subreport. Because I need several main reports for different parties,
but all with the same subreport, I'm stuck with making a subreport and
query for each one. Not to mention the maintenance when something
would change.
Is there a more elegant way to achieve my wishes?
Thanks in advance for any insights.