Hi Everyone,
Help please, I've been banging my head against the wall with this for more time than I'd like to admit.
I have three tables, [Policy_Info], [Premium], and [Loss]. They are set up like this:
(composite Primary keys since autonumbers mean nothing )
What I would like to do is have a resulting table/query with all records from the [Premium] and [Loss] where the [Premuim_Year] and [Loss_Year] are related (since they are the same year) and if there is no relation for these it will still show the record. All I could come up with is this:
(a double LEFT OUTER JOINS?)
which gives duplicates of the Premium/Loss Year since there is no relationship between them...
I have no notion of the direction to go in about this. The resulting records are what i need put into a Report doing many calculations of its own (its actually the feed is by 5 layers of queries that do a lot of calculations before it gets to the report but the above example is essentially the same)
I've already put the report together and would rather not have to rebuild it using one main report and two subreports (for each table) The easiest approach i would thought would be to make a relationship to fix this but perhaps it would of been better time spent rebuilding the report from scratch to accomidate for referencing values in the subreports(or the quieries that feed them)
(I've only been writting Access systems for the past 3 months and my boss assumed I could just pop these things out... too bad I didn't go to school for programming of any type.)
Hope someone can give me any idea Thanks
Help please, I've been banging my head against the wall with this for more time than I'd like to admit.
I have three tables, [Policy_Info], [Premium], and [Loss]. They are set up like this:
(composite Primary keys since autonumbers mean nothing )
What I would like to do is have a resulting table/query with all records from the [Premium] and [Loss] where the [Premuim_Year] and [Loss_Year] are related (since they are the same year) and if there is no relation for these it will still show the record. All I could come up with is this:
which gives duplicates of the Premium/Loss Year since there is no relationship between them...
I have no notion of the direction to go in about this. The resulting records are what i need put into a Report doing many calculations of its own (its actually the feed is by 5 layers of queries that do a lot of calculations before it gets to the report but the above example is essentially the same)
I've already put the report together and would rather not have to rebuild it using one main report and two subreports (for each table) The easiest approach i would thought would be to make a relationship to fix this but perhaps it would of been better time spent rebuilding the report from scratch to accomidate for referencing values in the subreports(or the quieries that feed them)
(I've only been writting Access systems for the past 3 months and my boss assumed I could just pop these things out... too bad I didn't go to school for programming of any type.)
Hope someone can give me any idea Thanks