• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

Combo Box on change question

I have a form with two combo boxes.  When the value of one of them changes I want the other combo box data to clear.  Here's my code but its not working...

Private Sub cboRegType_Change()

    Me.cboProjType = ""

End Sub
0
SteveL13
Asked:
SteveL13
1 Solution
 
MikeMcEvoyCommented:
Did you try Me.cboProjType.Value = ""

Or you can reset the row source:

Private Sub cboRegType_Change()

    Me.cboProjType.Rowsource = ""
    Me.cboProjType.Requery

End Sub
0
 
SteveL13Author Commented:
Yes, I tried...  Me.cboProjType.Value = ""

And when I do...

    Me.cboProjType.Rowsource = ""
    Me.cboProjType.Requery

I have no values to select from in cboProjType
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
Steve ... this should work. If not, something else is going on:



Private Sub cboRegType_AfterUpdate()

    Me.cboProjType = Null

End Sub

mx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now