As I understand it, you are looking to:
1. Select 15 random items chosen from the complete list of items from Category CHEESE and DOUGH
2. Select 15 random items chosen from the complete list of items from Category SAUCE, MEAT, TOPP, and FZPIZ
3. Select 5 random items from the complete list of items from Category BAKERY, COND, ITAL, CP, MISC and POTATO
4. Select 5 random items from the complete list of items from Category DRINK, EQUIP, FRUIT, HARDWA, PAPER and ACCES.
5. Report the total random selection.
If this is the case, the updated file I just attached should fulfill your requirement. I created a copy of the table INVENTORY_1, INVENTORY_1_RPT, which is populated with the randomly selected data when the report is run, and cleared when the report is closed. The function code is in the Report's Code Module.
See if this solution works for you.
1. Select 15 random items chosen from the complete list of items from Category CHEESE and DOUGH
2. Select 15 random items chosen from the complete list of items from Category SAUCE, MEAT, TOPP, and FZPIZ
3. Select 5 random items from the complete list of items from Category BAKERY, COND, ITAL, CP, MISC and POTATO
4. Select 5 random items from the complete list of items from Category DRINK, EQUIP, FRUIT, HARDWA, PAPER and ACCES.
5. Report the total random selection.
If this is the case, the updated file I just attached should fulfill your requirement. I created a copy of the table INVENTORY_1, INVENTORY_1_RPT, which is populated with the randomly selected data when the report is run, and cleared when the report is closed. The function code is in the Report's Code Module.
See if this solution works for you.