bind multiple columns from a list box

G

Guest

I'd like to select a record from my list box and store more than one field to multiple fields on my form. Such as: My list box has [PONumber] [Company] [PartNumber] [Destination]. I current have the PONumber bound so it stores that info. Can I click once and also store the PartNumber? Any help on how to do that would be appreciated
Thx
 
N

Nikos Yannacopoulos

Neen,

Use the on Click event of the listbox to run a line of code like:

Me.TxtPartNumber = Me.ListBoxName.Column(2)

where TxtPartNumber is the name of the control on the form where you want to
put the part number, and ListBoxName is the name of your listbox control.
Just change them to the actual names.

HTH,
Nikos

neen said:
I'd like to select a record from my list box and store more than one field
to multiple fields on my form. Such as: My list box has [PONumber]
[Company] [PartNumber] [Destination]. I current have the PONumber bound so
it stores that info. Can I click once and also store the PartNumber? Any
help on how to do that would be appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top