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 9287433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:40:07+00:00 2026-06-18T19:40:07+00:00

I have a form (MS-Access 2003) that has three combo boxes. 1st (Category), 2nd

  • 0

I have a form (MS-Access 2003) that has three combo boxes. 1st (Category), 2nd (CatDetail), 3rd (NbrValue). I have no problem populating 2nd with an after update event from 1st. My problem comes in when I try to run a similar update event for the 2nd to update the 3rd. Here is my code.

Table 1 (Category)

CategoryID    Category Name
1             Vacation
2             DH

1st combo box (Category) SQL

SELECT Category.CategoryID, Category.[Category Name]
FROM Category
ORDER BY Category.[Category Name];

After Update VBA for 1st combo box (Category)

Option Compare Database
Private Sub Category_AfterUpdate()
Me.CatDetail = Null
Me.CatDetail.Requery
Me.CatDetail = Me.CatDetail.ItemData(0)
End Sub

Table 2 (CatDetail)

CatDetail ID    CatDetail         Category
1               Vac Day Used      Vacation
2               Partial Vac Day   Vacation
3               DH Gain           DH
4               DH Used           DH

2nd Combo Box SQL (CatDetail)

SELECT CatDetail.[CatDetail ID], CatDetail.[CatDetail Name], CatDetail.CategoryID
FROM CatDetail
WHERE (((CatDetail.CategoryID)=[Forms]![Combo Form]![Category]));

After Update VBA for 2nd Combo box (CatDetail)

Private Sub CatDetail_AfterUpdate()
Me.NbrValue = Null
Me.NbrValue.Requery
Me.NbrValue = Me.NbrValue.ItemData(0)
End Sub

This portion works great. I am lost with the next set to get the 3rd combo box to update.

Table 3 (Value)

ValueID     Value    CatDetail Name
1           -1       Vac Day Used
2           -0.5     Partial Vac Day
3           1        DH Gain
4           -1       DH Used

3rd combo box (NbrValue) SQL

SELECT Value.ValueID, Value.Value, Value.[CatDetail Name]
FROM [Value]
WHERE (((Value.[CatDetail Name])=[Forms]![Combo Form]![CatDetail]));

To summarize, I can select my 1st combo box value. After that selection the 2nd combo box updates with all corresponding values. The trouble is with the after update event on teh 2nd combo box as my 3rd combo box comes back Blank.

  • 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-06-18T19:40:09+00:00Added an answer on June 18, 2026 at 7:40 pm

    I do this all the time. In the AfterUpdate() set the rowsource of the dependent combobox.

    Sub Combo1_AfterUpdate()
    
     comboBox2.RowSource = "SELECT .... WHERE FIELD = " & Combo1.Value
    
     comboBox3.RowSource = ""  ' Reset the third combo until after the 2nd is set.
    
    End Sub
    Sub Combo2_AfterUpdate()
    
     comboBox3.RowSource = "SELECT .... WHERE FIELD = " & Combo2.Value
    
    End Sub
    

    This will work if the query’s are actually returning something.

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

Sidebar

Related Questions

I have a form in Access 2003 that should only be working with a
I have an access 2003 front end database with a form that allows users
I'm using Access 2003 and have a form that allows the user to pick
I am using Access 2003 and I have a form that collects some filtering
I have a sub form in Access: The CopyNo is a combobox that lets
I have a Microsoft Access form that is bound to a linked SQL Server
I have a bound form in microsoft access that allows a user to add
I have an C# form application that use an access database. This application works
I am designing an Access 2003 form (continuous) with a combo box in the
We have a report in MS Access 2003 that changed depending of the user

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.