i am attempting to help a coworker to update some old queries which were written very much in spaghetti code. The queries were used to lump backorders into groups from 0-30 days old, 30-60 days old, 60-90, and >90. One of the queries' recipients would like to see this in 0-10 business days old, 11-20 business days, etc.
The original queries used about 10 update queries to create a table (each query creating a column of data).
One of the queries created the "buckets" of 0-30, 60-90, etc, and it later uses crosstabs to create a table that lists each of the buckets as a column and sums the parts that are backordered in those buckets.
Our new query uses VBA to determine the new "buckets". We have a query that shows the part number and each bucket as column headings already.
We have found, in updating the macro that sends these reports out, that one of the reports that is sent is built upon the query preceding the crosstab in the original format (i hope this is making sense), so that there are 4 rows for every part number (one row with the backorder qty 0-30 days back, one line for 30-60 days back, etc, four total categories).
We need to update that other query to be identical to the old query that is used for the crosstab except with the new categories, as it feeds another query the macro sends out. How would we take a query that is a select query but already lists the "buckets" as column headings (similar to the results of a crosstab) and create a new query from it that lists the "buckets" on separate lines?
Thanks!
Your friendly neighborhood vampire
Edited to say that i have committed to helping her truly clean this database up and replace all the Update queries with actual data, but meanwhile this change is being requested for Monday.
The original queries used about 10 update queries to create a table (each query creating a column of data).
Our new query uses VBA to determine the new "buckets". We have a query that shows the part number and each bucket as column headings already.
We have found, in updating the macro that sends these reports out, that one of the reports that is sent is built upon the query preceding the crosstab in the original format (i hope this is making sense), so that there are 4 rows for every part number (one row with the backorder qty 0-30 days back, one line for 30-60 days back, etc, four total categories).
We need to update that other query to be identical to the old query that is used for the crosstab except with the new categories, as it feeds another query the macro sends out. How would we take a query that is a select query but already lists the "buckets" as column headings (similar to the results of a crosstab) and create a new query from it that lists the "buckets" on separate lines?
Thanks!
Your friendly neighborhood vampire
Edited to say that i have committed to helping her truly clean this database up and replace all the Update queries with actual data, but meanwhile this change is being requested for Monday.
Last edited: