fill a textfield using the selected record on the listbox

icemonster

Registered User.
Local time
Today, 08:15
Joined
Jan 30, 2010
Messages
502
hi.

i want to know how to fill a textfield with the selected record from a listbox? any links i can work on?
 
So long as the information you wish to show in the text box forms part of the Row Source of the List box, you can use;
Code:
=Me.ListBoxName.Column([B][COLOR="Red"]X[/COLOR][/B])
as the Control Source, where X represents the column number of the column that holds the data you wish to display in the text box, remembering that the columns in a list box or Combo for that matter are numbered from zero up, (the zero column is often hidden
 

Users who are viewing this thread

Back
Top Bottom