ComboBox Fields

G

Guest

Thank in advance.
I have a main form bound via a query containing equipement to dispatch. On
the form I have an Combobox via a contacts query looking for a contact by
bringing up 4 fields (contact, company, telno & Pcode), user selects correct
contact - all is fine. However I wiould like to fill in 3 of the main form
fields with the info that 3 of the combobox colums contain.
Can anyone help
Many thanks Nigel
 
D

Douglas J Steele

You can refer to the additional columns as Me.MyComboBox.Column(1),
Me.MyComboBox.Column(2), and so on.

Replace MyComboBox with the name of your actual control. Note that column
numbering starts at 0, not 1. The two snippets above would return the
content of the 2nd column of the selected entry and the 3rd column
respectively.
 
G

Guest

Many many thanks, it worked a real treat

Douglas J Steele said:
You can refer to the additional columns as Me.MyComboBox.Column(1),
Me.MyComboBox.Column(2), and so on.

Replace MyComboBox with the name of your actual control. Note that column
numbering starts at 0, not 1. The two snippets above would return the
content of the 2nd column of the selected entry and the 3rd column
respectively.
 

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