Results 1 to 4 of 4
  1. #1
    GSevensM is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2014
    Posts
    5

    Cascading Combo Against a Field That Does Not Appear in Table Behind Form

    Hi All,




    I'm trying to put together a form to an AzureSQL database (not mine) and am struggling on some location combos.


    The table design is that only one parent appears on the relevant table. For example, the Country table has idContinent on it. The City table has idCountry but does not have idContinent.


    I'm creating a City form where Cities can be added, and I am struggling to create the cascade because idContinent doesn't appear on the City table. Does anyone know how to create a cascading combo in this circumstance?


    Cheers!

  2. #2
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,122
    I take it you want to first select a continent then a country then a city. The Continent combo doesn't need to be bound, you simply select a Continent(ID) then in the Country combo row source use Select CountryID,Country FROM Countries WHERE idContinent= Forms!YourForm!cboContinentCombo;

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,446
    is your form a single form or a continuous form? If the latter, then an unbound control for continent won't work because although you see multiple rows, there is actually only one instance of the unbound control. The usual workaround is to put the unbound control(s) in the form header or footer. But once a city is chosen, if you wanted to change it, you would have to go back to continent and start again.

  4. #4
    Bullschmidt's Avatar
    Bullschmidt is offline Freelance DB Developer
    Windows 10 Office 365
    Join Date
    Mar 2020
    Location
    USA
    Posts
    64
    Cascading Combo Against a Field That Does Not Appear in Table Behind Form
    And yes a combobox's RowSource property (which determines the choices shown in the combobox) can be completely different than the combobox's ControlSource (which would generally be a field that the form is based on).

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

Similar Threads

  1. Cascading Combo Boxes Not Syncing With Data In Table
    By VSCurtis in forum Programming
    Replies: 14
    Last Post: 05-06-2017, 12:24 PM
  2. Replies: 7
    Last Post: 12-09-2014, 12:24 PM
  3. Replies: 6
    Last Post: 02-01-2013, 10:02 AM
  4. Replies: 11
    Last Post: 08-29-2011, 01:45 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