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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Query Results Using Controls on a Form 1

Status
Not open for further replies.

bchess1

Technical User
Dec 11, 2002
3
US
I have a form with a combo box that has the following elements as the row source: "<";">";"<=";">=";"=". The name of the combo box is "cboSymbol".

I also have a text box that I can type a dollar amount in. The name of the text box is "txtAmount".

I want to run a query to pull data that matches the information on the form based on the values in these two controls. For instance, if I select ">" in the combo box and put 500 in the text box, I want all records where the dollar amount is greater than $500. Any thoughts on how this can be done? I tried putting the control names in the query grid, but it tells me it is too complex to calculate.
 
There is an entire query by form "applet" at There is a combo box that allows the user to select the "symbol" as well as fields, grouping, sorting,...

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top