Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Fill a 2 column combo box from an ado recordset

Posted on 2012-03-30
2
Medium Priority
?
340 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
[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 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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.

604 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