Solved

VB Combo Box and Microsoft Access Combo Box

Posted on 2004-08-31
4
142 Views
Last Modified: 2010-05-02
Hi, I want to start a project with using Visual Basic.

But I found that the combo box function in Access is very powerful as it can split column to display difference kind of information in several column, and indicate the primary key in hidden column.

Compare with VB's combo box, seem like it is hard to achieve.

I wonder is it possible to import Access Combo Box into VB project ?
Hopefully it is not a too silly question, i try search it from internet, but it just lack of information.

Thank you very much.

Regards,
xiaoytan
0
Comment
Question by:xiaoytan
  • 2
4 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 125 total points
ID: 11941202
Yes. Add the component: Microsoft Forms 2.0 Object library to your project.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 11941218
Note that if you do have Office installed then this should be already on your system. The file name is FM20.dll
0
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 11943377
Alternatively see how it works in this example:

Substituting a ListView for a Combo's Dropdown List
http://vbnet.mvps.org/code/subclass/combolistview.htm
0
 

Author Comment

by:xiaoytan
ID: 11970180
Hi, Grahamskan.
Thank a lot. I can add the combo box on a "UserForm".
It just that, how the combo box connect with database and get the table info ?
i try lot time already, but still cant work.

And there has a difference between Userform and normal form, aren't they ?

As ryancys, I did go to the useful link. and will try whether this way working....

0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

777 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