Hello,
I will try to make this as simple as possible. We have a department with multiple units. Each unit has a unique ID. Within each unit, each employee in those units also have unique ID's. As employees interact with customers they make notes on the customers accounts and assign the notes an expiration date. We have an database that pulls all the notes that are expiring that day and we want each employee to have all their notes print out on a report based on their employee ID. So the main table will contain all notes expiring that day with the unit and employee ID attached to each note. Whether or not a person has 1 note or 10 notes, we want each employee to have their own report of all their notes for that day. We have a macro to print the reports and we are using RunMacro and hard coding a number in the Repeat Count field that is high enough to make sure all notes are printed. A Unit may have 5 employees but only 2 may have notes that day, however we still need to hard code the number to be equal or higher than the total employees in that unit. Is there a way to evaluate the number of employees (with notes) each unit has that day based on the unit ID(chosen by the user) and only print out those notes and not have to hard code a generic number. Thanks.
I will try to make this as simple as possible. We have a department with multiple units. Each unit has a unique ID. Within each unit, each employee in those units also have unique ID's. As employees interact with customers they make notes on the customers accounts and assign the notes an expiration date. We have an database that pulls all the notes that are expiring that day and we want each employee to have all their notes print out on a report based on their employee ID. So the main table will contain all notes expiring that day with the unit and employee ID attached to each note. Whether or not a person has 1 note or 10 notes, we want each employee to have their own report of all their notes for that day. We have a macro to print the reports and we are using RunMacro and hard coding a number in the Repeat Count field that is high enough to make sure all notes are printed. A Unit may have 5 employees but only 2 may have notes that day, however we still need to hard code the number to be equal or higher than the total employees in that unit. Is there a way to evaluate the number of employees (with notes) each unit has that day based on the unit ID(chosen by the user) and only print out those notes and not have to hard code a generic number. Thanks.