• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help with excel vba form sql cascade comboboxes

felipe515

New Member
Good afternoon, I'm having trouble getting a SQL string that integrates into 2 different comboboxes by pulling data from access, I'm falling into an infinite loop and I'm not able to solve it, can anyone help me?. Here is the code

Code:
RS.Open "SELECT subcriterio_id, Subcriterio FROM tb_subcriterio WHERE criterio_id = " & cmb_criterio.Text & " ORDER BY Subcriterio", connection, adOpenKeyset, adLockReadOnly
        If RS.RecordCount > 0 Then
            Do Until RS.EOF
                cmb_subcriterio.AddItem RS!subcriterio_id, Subcriterio
                RS.MoveNext
            Loop
        End If

80543

80544
80545
80546
80547
 
felipe515
Please reread Forum Rules which are for You too
  • Cross-Posting. Generally, it is considered poor practice to cross post. That is to post the same question on several forums in the hope of getting a response quicker.
  • If you do cross-post, please put that in your post.
  • Also if you have cross-posted and get an Solution elsewhere, have the courtesy of posting the Solution here so other readers can learn from the answer also, as well as stopping people wasting their time on your answered question.
 
Back
Top