I have a form that has a bunchof different fields. You can enter search data into each field to search a table. Lets say that each piece of searchable data is a number.<br>So we have 1, 2, 3, 4, 5<br>Now I want to make a bunch of buttons that will display tables based on a query that uses certain search data.<br>So using the numbers there would be a ton of buttons with the search group on each, so lets say there labeled. 1, 2, 3, 4, 5, 1-2, 1-3, 1-4, 1-5 etc. I obviously wouldn't make more then 10 buttons, so don't think I'm that nutty!
Anyway..I don't want to have a query in the database for each of these buttons. How can I make a temp query in vb code, that displays the table of results, but doesn't save anything to the database, and the displayed table is readonly.<br>I guess I need a way to in vb, create a query based on SQL code (which has references to the fields in the form), display the results in a readonly table, then delete the query or if there is a way, make the SQL string run and show a table without a query..<br>Well now that I have even confused myself, I'll leave you with that.
<br>Any questions just ask!<br><br>thanks!!