Results 1 to 3 of 3
  1. #1
    james7705 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2014
    Location
    East London, South Africa
    Posts
    24

    Cascading combo on sub form

    Good day
    I have attached a sample of my database here.
    the problem I am having is I have 2 combo boxes on my form which works perfectly. When I attach that form to another form as a subform, everything falls apart.
    I have tried to create a subform in datasheet and it doesnt work.
    I then tried to create a normal continuous form and attach it to my main form and it also doesnt work.
    Everytime on my main form it does not populate the second combo box.


    Please can someone help
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    the query that looks at the combo must now use the path thru the subform,

    if the 1st combo is STATES, then 2nd combo is CITY, the query for city must have the full path to the subform (use the builder, it always gets the path correct)

    select [city] from tCityState where [state] = forms!myMasterForm!subForm!form!cboState

  3. #3
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I would suggest you stop and step back a little.

    You have spaces in every object name - you should remove every space.
    Then read Autonumbers--What they are NOT and What They Are - under the NOT section, see #6
    I would remove all of the Layouts on the forms.
    You have fields names "Description" which is a reserved word (as is "Desc") and shouldn't be used for object names.


    For the subforms, I don't understand why you are using a combo box for the description field...??

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

Similar Threads

  1. Cascading Combo Box on Form Confusion
    By synses in forum Forms
    Replies: 9
    Last Post: 03-19-2017, 07:24 PM
  2. Replies: 8
    Last Post: 09-09-2015, 07:07 AM
  3. Search Form - Cascading Combo Boxes
    By WeeTerrier in forum Forms
    Replies: 7
    Last Post: 12-05-2011, 08:26 PM
  4. Cascading Combo box in Continuous Form
    By neo651 in forum Access
    Replies: 1
    Last Post: 09-15-2011, 02:34 AM
  5. cascading combo form
    By tonysomerset in forum Forms
    Replies: 0
    Last Post: 08-27-2008, 02:10 AM

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