Whenever I need something 'more' in terms of data recall from my apps, I never know what to do. I have queries that populate forms and provide the data for reports and such, but as things 'develop' I can't figure out if/when I should make a new query or just add to an old one.
For example, one app I work on has what amounts to a 'main' query that a couple or three medium-sized tables (20-30 fields) and a bunch of other tables from small ones (~10 fields or less) to ones just used to populate combo boxes.
That query basically populates my main data input/record browse form as well as most of my reports.
So the client asks if I can add something to the application that will require an additional table, etc, and then create some related reports which will need information that I now get from my main query. Certainly not all the information in my main query is needed. In fact, I probably only need about half the fields out of it or even less (but, that's true for most of my reports if you look at them individually).
So what do I do? What's the best for performance? Should I:
1. Just add the new table to the existing query and likely slow down everything done in the app since the main query is almost always being used.
2. Make a copy of the main query, delete out as many unnecessary fields as possible for my added needs.
3. Start fresh with a new query (probably just a variation of #2, really).
I guess I just don't understand the 'theory' behind when you should make a 'new' query and when it's better to just 'add onto' an existing one.
If anyone can provide a link or just give me a few pointers to broaden my understanding of this topic, I'd really appreciate it!
T
For example, one app I work on has what amounts to a 'main' query that a couple or three medium-sized tables (20-30 fields) and a bunch of other tables from small ones (~10 fields or less) to ones just used to populate combo boxes.
That query basically populates my main data input/record browse form as well as most of my reports.
So the client asks if I can add something to the application that will require an additional table, etc, and then create some related reports which will need information that I now get from my main query. Certainly not all the information in my main query is needed. In fact, I probably only need about half the fields out of it or even less (but, that's true for most of my reports if you look at them individually).
So what do I do? What's the best for performance? Should I:
1. Just add the new table to the existing query and likely slow down everything done in the app since the main query is almost always being used.
2. Make a copy of the main query, delete out as many unnecessary fields as possible for my added needs.
3. Start fresh with a new query (probably just a variation of #2, really).
I guess I just don't understand the 'theory' behind when you should make a 'new' query and when it's better to just 'add onto' an existing one.
If anyone can provide a link or just give me a few pointers to broaden my understanding of this topic, I'd really appreciate it!
T