troubleshooting Question

Fill a combobox from SQL Server

Avatar of egovernment
egovernmentFlag for Afghanistan asked on
Microsoft AccessMicrosoft SQL Server 2008Visual Basic Classic
9 Comments1 Solution347 ViewsLast Modified:
I use this code is working only with Acceass database not SQL Server database what the reason ?

    vr_RdSet.Open "SELECT [XXX] FROM [YYY] WHERE [XXX] IS NOT NULL " & _
    "ORDER BY [XXX]", vr_Conn, adOpenStatic, adLockReadOnly
    If Not vr_RdSet.EOF Then
        With Combobox278
            Set .Recordset = vr_RdSet
        End With
    End If
    Set vr_RdSet = Nothing

Open in new window

I'm using unbound form + Vba + Ado + Sql server

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros