Connecting Tech Pros Worldwide Help | Site Map

Show another item in table based upon what user selects.

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 11:13 AM
simonmarkjones@gmail.com
Guest
 
Posts: n/a
Default Show another item in table based upon what user selects.

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, 11:13 AM
jv
Guest
 
Posts: n/a
Default 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, 11:15 AM
simonmarkjones@gmail.com
Guest
 
Posts: n/a
Default Re: Show another item in table based upon what user selects.

Brilliant. That worked thanks alot!!! :)

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.