Connecting Tech Pros Worldwide Forums | Help | Site Map

Show another item in table based upon what user selects.

simonmarkjones@gmail.com
Guest
 
Posts: n/a
#1: Nov 13 '05
Hi

On a form i have a combobox which gets its values using
SELECT [costcode].[code] FROM costcode;

These are a set of codes.

Once the user has selected a code i wish to store the department that
the code relates to in a textbox.

My table is called costcode and i have 2 fields code and department.

Can anyone help?

Cheers


jv
Guest
 
Posts: n/a
#2: Nov 13 '05

re: Show another item in table based upon what user selects.


-Change the rowsource of the combo box to SELECT code], [department]
FROM costcode;
-Change the column count of the combo box to 2
-In the AfterUpdate event of the combo box, put
TextBoxName=ComboBoxName.column(1)

simonmarkjones@gmail.com
Guest
 
Posts: n/a
#3: Nov 13 '05

re: Show another item in table based upon what user selects.


Brilliant. That worked thanks alot!!! :)

Closed Thread