Solved

combooooo

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now