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

Linking Controls in a form

Status
Not open for further replies.

meliorexi

Technical User
Dec 1, 2003
16
AU
Hi

I have created a form based on a single table. Two of the controls are related and I want one to return a result on one control based on the selection (from a combo box) that the user makes on the other.

For example, if the user selects COMM from a combo box in one control, I want the other control to return "Communications", which is the full description for COMM.

Any help greatly appreciated.

Cheers
 
Hi

Have a table:

Id
Desc

this table would have rows so

COMM Comunication
...etc

base you combo box on the table, have two columns, Id and Desc in that order, set column widths to 1,0 (ie hide the second column)

have a text box, sets its recordsource to = MyCombo.Column(1), where MyCombo is the above mentioned combo box

One may aslo ask why?

if you set the column widths on the combo to 0,1 you can show the description but store the code

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top