Solved

Using the ListBox control with a database field

Posted on 1998-08-26
2
175 Views
Last Modified: 2010-04-30
I just started learning VB and I am just getting use to the controls.  My question is how do I get the contents of a field to appear in the listbox.  I am using a FoxPro table.

Thanks.
0
Comment
Question by:MLHAMMEL
[X]
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
2 Comments
 
LVL 4

Accepted Solution

by:
mcix earned 50 total points
ID: 1431114
To use a bound list box there are two steps...

1. Insert a data control on the form and set the connect properties, database name and recordsource properties.

2. Insert a reference to the databound ListBox, this is different than the standard list box in the ToolBox, you will need to go to <P>roject menu and select Componen<t>s.... It should appear in the list.

3. On the DBList control, set the rowsource property to the data control you created and then set ListField and BoundColumn properties.

Hope this gets you started...
0
 

Author Comment

by:MLHAMMEL
ID: 1431115
Very good.  Thanks a lot.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

749 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