Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Queries with a User Interface Form!!!!!!

Status
Not open for further replies.

Kckronic21

Programmer
Jul 29, 2001
81
US
I am trying to create different types of queries by using a form. I have 4 combo boxes on a Form called Query_Form: 1)Query_Name_combobox 2)Table_Name_combobox 3)Field_Name_combobox 4)Criteria_combobox. My question is how can I run a query based on the values from these comobo boxes? Thanks!
 
The first thing to do is set up parameters in your query -- you then place these parameters in your query using brackets i.e. -- in criteria grid specify parameter..

[criteria1]

You then need to pass these parameters in code to the query---
you can do this using an ADO recordset, command and parameter objects --

hope this helps

Hj

:eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top