Hey,
can anyone give some remarks on this database/table/query design…?
Imagine two databases…
e.g. sales
(1) tblCatalogue = IDcatalogue + IDproduct + price + year + …
(2) tblProducts = IDproduct + name + …
(3) tblSales = IDsales + IDproduct + IDorder + …
(4) tblOrders = IDorder + year + …
=> query example: total $ to be paid for order …
e.g. cycling
(1) tblCyclistRanking = IDranking + IDcyclist + MarketValue + year + …
(2) tblCyclists = IDcyclist + name + …
(3) tblTeamMembers = IDteam + IDcyclist + …
(4) tblTeams = IDteam + name + year +…
=> query example: total market value of Team … in year …
In both cases, many queries(/forms/reports) combine information of tables 1 & 3. To achieve this, I used a query relating those three tables with (1) the usual key – fields (providing the links in the chain) AND (2) the year – field (linking the ‘ends’ of the chain).
In Access (97?), however, such queries proved to be quite unstable (certainly when they got more complex, involving more tables,…). Is this an Access-problem or did I do something wrong here?
E.g. as an alternative, I considered also
– replacing the relation between table1!year and table2!year with a criterium in the query design grid, equalling table1!year = table2!year (but this seems to be too weird to be a wise solution)
– when the query result only deals with only one year: using a parameter in the criteria equalling both year fields = YYYY (e.g. referring to a field/control on a form from which the query is launched).
Or did I make a mistake in the database/table design? (Some friend pointed me once at the ‘cyclic relationship’ I created between the 3 tables: table1!year => table3!year, table3!ID2 => table2!ID2, table2!ID1 => table1!ID1.)
I made both databases some years ago and they might be subject to further development soon – so if it’s a bad design, I’ld be happy to ‘repair’ it before I continue …
Thanks for any feedback & a happy newyear to all!