Solved

Using the ListBox control with a database field

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

737 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