Hey guys,
I meet one situation, I have a master table to deal with. In this table, I have all the information about our customers and the information are sorted by multiple fields like location, name, address. One thing that can identify the customer is customer ID. I grouped customers by ID. Like Customer John is customer 1.
Now, I need to group customers by ID, so, I ran a query where the criteria is "1".
However, I need to manually enter 90 times because there are 90 different customers in the table. How can I write a macro or VBA so that they can be done automatically into 90 queries?
Thank you


I meet one situation, I have a master table to deal with. In this table, I have all the information about our customers and the information are sorted by multiple fields like location, name, address. One thing that can identify the customer is customer ID. I grouped customers by ID. Like Customer John is customer 1.
Now, I need to group customers by ID, so, I ran a query where the criteria is "1".
However, I need to manually enter 90 times because there are 90 different customers in the table. How can I write a macro or VBA so that they can be done automatically into 90 queries?
Thank you


