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

Dependant Combo Box w/ Default Value Question

Status
Not open for further replies.

smille777

Technical User
Jun 27, 2004
43
US
Hi everybody.

I don't know exactly how to clearly explain this, but I will give it a shot.

I have a form "Customer Quotes" which has a [CustomerID] field where the default value

=[Forms]![Quotes by Customer]![CustomerID]

On the Subform "Customer Quote Details" I have a combo box:
cboProductID.

My issue is this: I have another table "Customer Requirements" that I want as my recored source for [ProductID] and yet have it dependant on the default value for [CustomerID] in "Customer Quotes" Form.

I hope this makes sense. I am a bit confused myself. ANY help is GREATLY appreciated.

Scott
 
Something like this ...
Code:
cboProductID.RecordSource="Select field1,field2 " & _
  " From tableofCustomerRequirements Where CustomerID=" & _
  [Forms]![Quotes by Customer]![CustomerID]
Play around with a select query first and you'll get a better idea what this should look like ( use SQL View ).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top