Solved

Fill a 2 column combo box from an ado recordset

Posted on 2012-03-30
2
267 Views
Last Modified: 2012-04-13
I have an ADO recordset with 2 columns,

I want to populate this into a combo box.

I've tried using the .AddItems in a loop through the recordset but this only works with 1 column.

I'm using Access 2010.  Any ideas?
0
Comment
Question by:lee_jd
2 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37787856
Can you post the code you were trying...? and post any errors you were getting...?
...and post the relevant properties of the combobox...

I am sure you were just missing something like setting the column count to 2, or having set the column width of a column to 0
...or missed something like this in the code
rst!Col1=...
rst!Col2=...

JeffCoachman
0
 
LVL 31

Accepted Solution

by:
Helen_Feddema earned 500 total points
ID: 37788451
You might be able to just use the SQL for the recordset as the combo box's row source.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

705 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

20 Experts available now in Live!

Get 1:1 Help Now