Solved

combooooo

Posted on 2000-03-18
4
184 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

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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

735 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