Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

combooooo

i have a combo in a form
i want to load in this combo 2 field
but when i choose from this 2 field just one field fil the combo any field
of  the tow
thanx yaco
 
0
yaco
Asked:
yaco
1 Solution
 
MarineCommented:
explain again. You want to load combo2 values into combo1 ? or just a selected item fromthe combo2
0
 
VbmasterCommented:
You can only select one item using a combobox, if you want to select multiple items you want to use a listbox instead with the MultiSelect property set to True.
0
 
yacoAuthor Commented:
i want to load 2 field in one combo
and select one of tow field
EX . i have a table with this filed
code , name
i want to load these 2 field in combo
and choose name to submit code field in the combo or the code field show in the combo  when i choose by name
0
 
john_priceCommented:
Assuming the code field is numeric, you can save the code in the itemdata array:

  combo1.additem "LastName"
  combo1.itemdata(combo1.newindex)= codevalue



To use the code when the user clicks a a value:


  debug.print combo1.itemdata(combo1.listindex)


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now