Hi all,

I'm designing a form in VB that is supposed to run a query in MS Access that filters the database according to certain criteria, the problem is that there are many criteria that the user may want to filter the database according to, so I had to make a different query for each criterion and a specific command button in VB that runs that query. But this means a very large number of queries which is just not professional, so I was just wondering if there is a way to pass the arguments from the command buttons in the VB form to only one query that would filter the database according to these arguments.

Thank you very much