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!

Populating a form field

Status
Not open for further replies.

jeff1

IS-IT--Management
Nov 8, 2000
49
US
I have a simple form that consists of a combo box and several input boxes I would like the combo box to control what appears in one of the input boxes. The combo box is getting its information from a different table than that of which the form is being saved too.
 
I would set the Control Source of the textbox control to equal what's in the combo box you are referencing. CboBox would be the name of the combo box.

TextBox1.ControlSource = [cboBox1]
 
Omega36,

This gets me closer to my goal. I need to run a querry based on what is selected in cbobox30. The text box needs to be populated w/ data based on a querry. Example:

SELECT [My Table].FieldName
FROM [My Table]
WHERE [My Table].ID = [combo30];

How do I accomplish this. I am a newbe to access.

Thanks for your help
 
This is the general statement for you to reference combo30:
[tt]
SELECT [My Table].FieldName
FROM [My Table]
WHERE [My Table].ID = [Forms]![MyFormName]![combo30];
[/tt]

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top