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
Solved

Fill a 2 column combo box from an ado recordset

Posted on 2012-03-30
2
298 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

792 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