Solved

Using the ListBox control with a database field

Posted on 1998-08-26
2
143 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 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

13 Experts available now in Live!

Get 1:1 Help Now