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

Combo Box Issue

Status
Not open for further replies.

WarrenB

Programmer
Feb 7, 2001
38
GB
In a form I have a combo box. However, I want the values that appear in the combo box to be the result of a query. However in order for the query to work I need a value entered in a text box in the form to be passed to the query to give an output from the query to go into the text box. How do I go about this?

Thanks
=================
Warren Brown
wazzer@btinternet.com
=================
 
Warren,

View your Combo Box query in QBE grid view. Set your criteria for the criteria to the name of the form's text box.
Code:
   [Forms]![Name_of_your_Form]![Combo_Box_Name]

On the BeforeUpdate event of the textbox, run
Code:
   ComboBoxName.Requery


HTH


John

Use what you have,
Learn what you can,
Create what you need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top