P
Pendragon
I have two unbound text boxes for user input in order to do a quick search.
Based on the selection of one of two check boxes (individuals or companies),
the criteria entered in the text boxes are written into an SQL statement.
My command button to preview the data writes the SQL statement based on the
selections. What is the best way to then display the results? If I remember
correctly, DoCmd.RunSQL expects an action statement. Also, DoCmd.OpenQuery
is expected a named query, not a SQL statement (or string variable containing
such).
Suggestions?
Based on the selection of one of two check boxes (individuals or companies),
the criteria entered in the text boxes are written into an SQL statement.
My command button to preview the data writes the SQL statement based on the
selections. What is the best way to then display the results? If I remember
correctly, DoCmd.RunSQL expects an action statement. Also, DoCmd.OpenQuery
is expected a named query, not a SQL statement (or string variable containing
such).
Suggestions?