Results 1 to 4 of 4
  1. #1
    euphoricdrop is offline Novice
    Windows XP Access 2002
    Join Date
    Apr 2011
    Posts
    2

    Cascading Combo Box Help

    I have a form, frmRepair, that has two combo boxes on it (cboModelNumberID & cboPartNumberID). I would like to have the user select from cboModelNumberID and have it filter results for cboPartNumberID. I currently have the filtered results coming from three seperate tables depending on the model number selected. (tbl1060PartNumber, tbl1063PartNumber, tbl1073PartNumber).



    Following is the code I used:
    Private Sub cboModelNumberID_AfterUpdate()
    On Error Resume Next
    Select Case cboModelNumberID.Value
    Case "1060"
    cboPartNumberID.RowSource = "tbl1060PartNumber"
    Case "1063"
    cboPartNumberID.RowSource = "tbl1063PartNumber"
    Case "1073"
    cboPartNumberID.RowSource = "tbl1073PartNumber"
    End Select
    End Sub

    According the some cascading combo box tutorial sites, my code appears ok. The problem is when I select from cboModelNumberID, nothing appears in cboPartNumberID to select from. It is blank. Please help, what am I doing wrong?

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    In design view, look at the properties for cboPartNumberID. On the FORMAT tab, look for a line "Column Count".
    What is the number there?
    Then look for "Column Widths". This is where you show or hide columns. To hide a column, set the width to zero.

    To hide the first column and show the second column, use 0;1.2

  3. #3
    euphoricdrop is offline Novice
    Windows XP Access 2002
    Join Date
    Apr 2011
    Posts
    2
    I tried to adjust the columns in various way, but there is still nothing.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I created a temp mdb and the code worked as expected. Can/would you upload your mdb (minus any sensitive info)??

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Cascading combo boxes
    By Jackie in forum Access
    Replies: 5
    Last Post: 07-26-2013, 09:07 AM
  2. How to save cascading combo box value
    By mar_t in forum Access
    Replies: 2
    Last Post: 01-20-2011, 06:37 PM
  3. cascading combo
    By rexb in forum Forms
    Replies: 9
    Last Post: 10-26-2009, 04:10 PM
  4. Cascading Combo Boxes
    By desireemm1 in forum Programming
    Replies: 1
    Last Post: 10-05-2009, 06:00 AM
  5. Cascading Combo Box
    By nywi6100 in forum Forms
    Replies: 0
    Last Post: 10-23-2006, 01:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums