Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4544540
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:41:10+00:00 2026-05-21T15:41:10+00:00

I have two comboboxs, one is used to control another. So in the AfterUpdate

  • 0

I have two comboboxs, one is used to control another. So in the AfterUpdate event of the combo_1, I do a requery for combo_2 to force it to update its list according to the value chosen in combo_1. But my code doesn’t.

Private Sub combo1_AfterUpdate()

Dim strSQL As String

Select Case Me.combo1.Column(1)
    Case "Production"
        Me.combo2.Visible = True
        strSQL = "SELECT id_prod FROM tblProd;"
        Me.combo2.ControlSource = strSQL
        Me.combo2.Requery
    Case Else
        Me.combo2.Visible = False
End Select

End Sub

There is nothing in the combo_2 when i choose “Production” in combo_1. The requery clause is executed but no effect.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:41:11+00:00Added an answer on May 21, 2026 at 3:41 pm

    Unless the syntax has changed in later version you should change the line

    Me.combo2.ControlSource=strSQL
    

    To

    Me.combo2.RowSource=strSQL
    

    Try that because otherwise it looks good

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DataGrid that two of its columns are ComboBoxes (one contains few
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two classes (MVC view model) which inherits from one abstract base class.
i have a form that consist of two textfield and one combobox. i want
I have two comboBoxes, one that lists the 7 days of the week and
In my windows form i have two combobox and one text box when a
I have two combo boxes, one for 'order by' and the other 'direction' (ascending,
Suppose I have two comboboxes. One for the lower-value and one for the upper
How can I add two comboboxes from one store store have type field witch
I have two comboboxes; one contains a list of countries, and the other contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.