Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

combooooo

Posted on 2000-03-18
4
183 Views
Last Modified: 2010-05-02
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
Comment
Question by:yaco
4 Comments
 
LVL 6

Expert Comment

by:Marine
ID: 2631484
explain again. You want to load combo2 values into combo1 ? or just a selected item fromthe combo2
0
 
LVL 7

Expert Comment

by:Vbmaster
ID: 2631553
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
 

Author Comment

by:yaco
ID: 2632271
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
 

Accepted Solution

by:
john_price earned 50 total points
ID: 2634186
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

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 65
MsgBox 2 59
Cannot Load VB6 on Windows 10. Installed OK but error on opening existing project. 7 96
to transfer string from C lanaguage to VBA 4 72
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question