Hi Guys,
Could somebody please help me with the vba code to do the following:
I have a form that is used to select criteria for running a report. On the form we have:
Submit command button
1x combo box named cboList
In the combo box, the first option is "All Customers" This is the one I need help with
So if a user selects "All Customers" and click submit I need the same report to run for each and every customer that is active.
My thoughts are that there should be a way to count to all the customers in the table and use this total in a loop. This loop will then check every customerID to see if the IsActive field is true if it is then it should run the report for that customer and send it to the printer. ( So, in theory, it would print for example 20 reports if there were 20 customers active in the table.)
thats the theory part....doing this I hav no idea how to put it into code - sigh