Results 1 to 5 of 5
  1. #1
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318

    Sub-Sub Form Cascade Combo Boxes

    I have several problems but maybe if we fix one the others will fall in place. When I had the cascade combos in a subform it worked fine but when I moved it to a sub-subform I started having problems.



    The first problem is when data is selected in the first combo box and you move to another field in the record the data is not saved or changed in the table. If you leave the record completely it saves it. What is causing this?

  2. #2
    cowboy is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2010
    Posts
    291
    For your specific problem you need to incorporate 1 of these, without seeing your code I dont know which one but this should get you started.

    Forms("your form name").Refresh
    Me.Refresh

    Forms("your form name").Requery
    Me.Requery

    RunCommand acCmdSaveRecord

  3. #3
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318
    OK I used the RunCommand and that worked but it didn't take care of the other issue like I was hoping.

    I have a tab "Countermeasures"
    with a Control whose Source Object is "SubForm_CM_Package"
    in that is a SubForm "SubForm_Courtermeasures"
    on that SubForm is a Control whose Source Object is "SubForm_CM_Details"
    in that is a SubForm "Countermeasure Details"
    on that SubForm we have the Cascade Combo "CmbSystem","CmbType", and "CmbElement"

    In the Row Source of CmbType I have a SQL Q with Type and System fields and
    [Forms]![Fm_Inventory]![SubForm_CM_Package].[Form]![CmbSystem]
    as criteria for System.

    It brings up a blank. I think I need to work in "SubForm_CM_Details" but I'm not sure of the syntax.

  4. #4
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318
    I got it to work
    [Forms]![Fm_Inventory]![SubForm_CM_Package].[Form]![SubForm_CM_Details].[Form]![CmbSystem]

    I have to do the RunCommand on this field as well. Is this because it is a Sub Sub Form?

  5. #5
    cowboy is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2010
    Posts
    291
    The RunCommand acCmdSaveRecord saves the current record of the forms control source in which you are entering the code, so after you update a field it needs to save the information in order for it to relate to other parts of the project.

    If your problem is fixed please mark the thread as solved.

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

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. 3rd Combo Box Cascade Issues
    By GAccess in forum Forms
    Replies: 12
    Last Post: 03-06-2012, 03:16 PM
  3. Combo Cascade with a twist on autofill
    By Huddle in forum Access
    Replies: 1
    Last Post: 02-29-2012, 10:18 PM
  4. Replies: 11
    Last Post: 06-30-2011, 11:12 PM
  5. Help with form & combo boxes
    By rnjalston in forum Forms
    Replies: 1
    Last Post: 03-17-2010, 10:38 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