Question : How to create a dynamic query builder

I am trying to determine the best way to go about creating the code necessary to allow a user form to generate custom queries.  I have thought of several approaches and none seem very efficient.

At least initially, the queries will all be based on the same table.  So it is just a matter of defining what fields to include and what criteria for each field.

On the form, I am using radio buttons, check boxes and text boxes.

Answer : How to create a dynamic query builder

You could do that, open the form in a datasheet view with either your header or footer having buttons on it to export, print, whatever.
The issue with this is you don't know what fields you will have in the query, meaning you have to change the fields on the form to match your query.  If you need help with this issue, I would post another question.
Random Solutions  
 
programming4us programming4us