andreas_udby
Registered User.
- Local time
- Today, 17:23
- Joined
- May 7, 2001
- Messages
- 76
I'm building an app that will let one of our execs drill down on employee data. He wants first to be able to select a particular group of employees, such as everyone in a certain department, pay band, performance code, function, etc. Some of these have many possibilities -- there are 21 departments, for example. All told, there are 54 different subgroups that he may want to view.
Then, he wants to be able to view each subgroup in one of eight different sort orders, such as by name alphabetically, by total compensation, by bonus, by pay band, etc.
So I have 54 possible groups times 8 possible orders = 432 possible combinations. Now, I really don't want to have to write a query for each of these possible combinations, but I'm not sure how else to proceed.
Since the same fields are being viewed each time, just with different records being displayed, I had hoped I could create a single "generic" query and then drop in the grouping and order using a macro or some complex VB module. I've got a pair of combo boves on my navigation screen, one with Grouping and the other with Order, just for that purpose. Now I just have to figure how to pass those parameters to a query.
Or am I barking up the wrong tree? Can someone suggest a better approach to this? Is there something in the Northwind database that might prove instructive?
Many thanks,
Andreas
Then, he wants to be able to view each subgroup in one of eight different sort orders, such as by name alphabetically, by total compensation, by bonus, by pay band, etc.
So I have 54 possible groups times 8 possible orders = 432 possible combinations. Now, I really don't want to have to write a query for each of these possible combinations, but I'm not sure how else to proceed.
Since the same fields are being viewed each time, just with different records being displayed, I had hoped I could create a single "generic" query and then drop in the grouping and order using a macro or some complex VB module. I've got a pair of combo boves on my navigation screen, one with Grouping and the other with Order, just for that purpose. Now I just have to figure how to pass those parameters to a query.
Or am I barking up the wrong tree? Can someone suggest a better approach to this? Is there something in the Northwind database that might prove instructive?
Many thanks,
Andreas