Results 1 to 5 of 5
  1. #1
    lios1984 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    29

    List of Choices

    Hello to everyone,

    I want to make a table where there will be two fields, among others: Country and City.

    The value of Country will come from a List of Choices but the value of City will come from a similar list of the cities only in the chosen country.

    For example, I choose from the list England as Country. In the field City the list of choices will be only cities in England.



    How can I do that??


    Help please!!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Cascading combos:

    Baldy-Cascading Combos
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    lios1984 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    29
    It can be done only with Visual Basic??

    I don't really know Visual Basic, I've only worked with C.
    Moreover, your suggestion refers to forms. Can't I do that for tables?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    I don't know of a good developer that lets users work directly in tables. To my knowledge there's no way to do it in a table anyway.

    The Requery method could be done with a macro, if you prefer.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by lios1984 View Post
    It can be done only with Visual Basic??

    I don't really know Visual Basic, I've only worked with C.
    Moreover, your suggestion refers to forms. Can't I do that for tables?
    If you are referring to lookup fields at the table level, I don't think you can do what you want.

    Read: "The Evils of Lookup Fields" at http://access.mvps.org/access/lookupfields.htm

    I never allow data entry, edits, adds from a table. Well, if I am the only one using the database for something quick and dirty......

    Forms & VBA give you more control and abilities..... if you plan to use Access a lot, you need to learn how to program. Its not that hard.. lots of free resources on the web to teach you how to program....

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

Similar Threads

  1. Replies: 9
    Last Post: 12-07-2011, 04:30 PM
  2. Replies: 1
    Last Post: 05-25-2011, 08:37 AM
  3. Query to Limit Combo Box Choices
    By jimrockford in forum Queries
    Replies: 2
    Last Post: 04-23-2011, 10:24 PM
  4. Replies: 4
    Last Post: 04-07-2011, 03:16 PM
  5. Multiple Choices for Parameters with VBA and Queries
    By weasel7711 in forum Programming
    Replies: 3
    Last Post: 02-02-2011, 09:19 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