Solved

Combo, listbox

Posted on 1998-07-20
7
157 Views
Last Modified: 2010-05-03
This may be an easy question.  With the combo box, list box, ect.  I am using it to connect to an access query.  I selected a specific field and recordsource for it.  I only has the first record visible in the drop down box.  How do I change it so It has all records?

EG.

connect to access.
Have 20 names in names table
choose lastname as recordsource
only has 1 name in drop down box, should be 20.


thanks!
0
Comment
Question by:DAVIDH
7 Comments
 
LVL 1

Expert Comment

by:DQ
Comment Utility
Using the DBCombo and DBlist controls.
0
 

Author Comment

by:DAVIDH
Comment Utility
I am using the controls thats not the problem, the controls ONLY show the first record in the drop down box.  I want all the records.
0
 

Author Comment

by:DAVIDH
Comment Utility
I am using the controls thats not the problem, the controls ONLY show the first record in the drop down box.  I want all the records.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 9

Expert Comment

by:Dalin
Comment Utility
DAVIDH,
Assume you are using a datacontrol

You need to specify the Rowsource (the datacontrol for the table,  and then set the listField to the column you want to show.

If you need help on doing that, let me know
Regards
Dalin
0
 

Author Comment

by:DAVIDH
Comment Utility
Dalin,

I have done all of that.  In my message I said what the problem is.   It connects to the database, connects to the query, connects to the recordsource, but when I click the down arrow on the drop box, it only shows the first record, all the others are blank.  I want it to be filled with all the records.  

When I click the arrow control on DATA1  it will move to the next one, and so on, but I want the user to be able to choose from a drop down box, similar to the way they would in access.


Thanks
0
 
LVL 9

Accepted Solution

by:
Dalin earned 50 total points
Comment Utility
DavidH,

What I show is additional to what you have done.

What you have done it to bind the combo to the recordset, which automatically shows the value of the field you connect to, but only one at a time.

To show the whole list from a field of the table, you need to have a dbCOmbo and set the rowsource and list field.

The other way is to put all the records (the 20 some) in the List property of the regular combo, but you need to do that everytime a new value added to the field.

Let me know If I did not make myself clear.

Regards
Dalin



0
 
LVL 18

Expert Comment

by:deighton
Comment Utility
Dbcombo.style = 2 '(Dropdown List)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
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 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…
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…

728 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

14 Experts available now in Live!

Get 1:1 Help Now