1. Go to Query
2. Select an Invoice > Dynamic query
3. Expand invoice account distribution, expand account segments 
4. Double click on account code
5. Change the operator to "one of" and add the account codes
6. Scroll up to invoice and expand that
7. Double click on "post date", change the operator to between and add the start and end dates
8. Go to the output tab and grab the desired fields

This will pull any vendor that has an invoice that has used that account code within the distribution