I know it gets a bad rep but I'm new to queries & what I don't like about them is it seems I could end up with amass of queries where dlookup would avoid these. I know they are faster but I am concerned I will end up with so many; which I'll never be able to keep track of. No doubt I'm missing something essential but simplifying the below as it is greatly more complex but I'm wondering if my Schema is correct in trying to simplify the process as rates in resources can change out of scope from when the Activities are created; resulting in incorrect rates used:
- tblResources[Rate] has various resources with their rates & feeds below:
- tblActivites[Rate] . Contains the total of it's subTable below
- tblActivityComposition contains different combinations of tblResources[Rate] which produce the total to be used; governing everything (I'm not sure whether to derive the total from vba code looping recordsets/ query...) or change the schema...?
My main concern is the tblResources[Rate] can change when the tblActivityComposition changes. New items can be added/ removed/ updated. I can think of ways to do it with VBA updating the total of the tblActivity[Rate] but my design cannot be that great if I'm having to do this?
Appreciate info is ltd but it borders on the subject of historical price tracking where the rare exception of redundant data is permitted (technically not redundant data). I understand the best way around this is to use queries, so they refresh... that has it's own downsides as they only produce values when run. Not to mention different events firing all over the place opening different forms and recordsets all over the place that would be susceptible to clash. That's the best example I can give as the main topic is more complex. Hopefully someone gets my gist?