Advertisement

01.29.2008 at 11:50AM PST, ID: 23120562
[x]
Attachment Details

Populate Access Combo Box from SQL Query

Asked by Ant_Dogg in Access Coding/Macros, Microsoft Access Database, Access Forms

Tags: microsoft, access, 2007, VB

I'm trying to do the following:

Enter your name
Enter you password
[submit]

After submission with button and authentication, populate the appropriate data based off a query on the person's name into a combo box. Any thoughts on how to do this?  I'm writing the function/macros with VB through Access.

I'll usually do something like this:

Dim rselect As New ADODB.Recordset
' open connection stuff here
rselect.Open "select data where name = name", cnn, adOpenStatic, adLockOptimistic

Can I push this rselect set into the combo box or is there a better way to do it?

Start Free Trial
[+][-]01.29.2008 at 12:36PM PST, ID: 20771974

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.29.2008 at 12:50PM PST, ID: 20772120

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.29.2008 at 01:02PM PST, ID: 20772225

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, Access Forms
Tags: microsoft, access, 2007, VB
Sign Up Now!
Solution Provided By: peter57r
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628