If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Field Auto Fill

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Jan 2002
Location: Nottingham - UK
Posts: 113
Unhappy Field Auto Fill

Hello !

I have a list box on a form field and when one of the list items is selected I need to two other fields to auto fill automatically with the respective data related to the item seleted from the list box.

Does that make sense ?

Thanks
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Apr 2002
Location: Portugal
Posts: 146
With the AfterUpdate event procedure of your listbox type the following code.

[control name that you want the data from listbox enters]=[listbox name].Column(0)

[other control that you want]=[listbox name].Column(1)

and so on!

Note: The number zero represents the first column of you list or combo box and 1 the second and so on.

Hope this helps!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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