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

Query from a field list combo box

Status
Not open for further replies.

M8KWR

Programmer
Aug 18, 2004
864
GB
I have a form which has a combo box listing the fields from a table.

What i would like is to use the value with this combo box in a query in order to filter.

I.e. the user selects a value from the combo box on the form, the query will always state the the field "Is Not Null". So then once then update the combo box the fomr has other things on it will be updated according to the value that is selected.

I hope this is clear what i require, if not then please let me know.

Many thanks for any help in advance...
 
Have you tried the 3rd option of the combo wizard ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
i do not think this will help as it assigns the field name to the row source of the combo-box, where as i need this to be changeable, but the "Is Not Null" but in the query to be static.

The form is like a dashboard view of a database. The user is able to change the database they want to query etc.

I have 1 main query, and other queries of this one in order to get the results for the user.

What i need is the main query to have this field from the combo-box that the user select and then query only on the data where this field have data within it.

I hope that makes sense... Or am i going about it all wrong, any guidance would be grateful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top