TallGuyinIT
IS-IT--Management
I have been asked to create a grid report which would list the SKUs in production across the top (columns) and the raw material items listed down the side (rows). The grid would contain the quantity needed of each raw material to manufacture the SKU.
My problem is that the column count will be different everytime the report is run depending upon the number of work orders in process. Is there a way to create an initial cursor and then add columns as needed?
I could create an array for the data, but I would have the same issue when declaring the array. I would either need to declare an array larger than what would ever be needed or quickly run through the database tables to calculate how large of an array would be needed.
Thanks,
My problem is that the column count will be different everytime the report is run depending upon the number of work orders in process. Is there a way to create an initial cursor and then add columns as needed?
I could create an array for the data, but I would have the same issue when declaring the array. I would either need to declare an array larger than what would ever be needed or quickly run through the database tables to calculate how large of an array would be needed.
Thanks,