Connecting Tech Pros Worldwide Help | Site Map

Show another item in table based upon what user selects.

  #1  
Old November 13th, 2005, 12:13 PM
simonmarkjones@gmail.com
Guest
 
Posts: n/a
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

  #2  
Old November 13th, 2005, 12:13 PM
jv
Guest
 
Posts: n/a

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)

  #3  
Old November 13th, 2005, 12:15 PM
simonmarkjones@gmail.com
Guest
 
Posts: n/a

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


Brilliant. That worked thanks alot!!! :)

Closed Thread