Results 1 to 6 of 6
  1. #1
    Rumoer is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2015
    Posts
    2

    Unicity of place names


    I have an access table with zipcodes. In this list there are numerous codes with the same place name for example "Amsterdam". But i like to refer to "Amsterdam" not numerous times, but just once, making "Amsterdam" a unique name in that column. As the same for all the other place names, a unique name in that column. How can i accomplish that?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    It seems you will have to select which zipcode you want to represent Amsterdam.
    There are a lot of zipcodes within Amsterdam, just as there are many zipcodes for New York City, Toronto and/or London.

  3. #3
    Rumoer is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2015
    Posts
    2
    It is possible in a query. That is what i am looking for. Done it in the past, but can't remember how i did it.
    Can think of something like; making a new column and give every place a specific number, but then i have to go through all of them and that is not what i want.
    There must be an easier way.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    What is your final objective?

    According to info at http://www.geopostcodes.com/Amsterdam
    it appears there are 89 distinct postal codes for Amsterdam.

    They all represent some part of Amsterdam.

    I attached a jpg of the 3rd postal code listed, but how will you pick the one you want to represent Amsterdam?
    Attached Thumbnails Attached Thumbnails PostalCode_3of89_Amsterdam.jpg  

  5. #5
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    You can use a totals query, and group by the city name, but if you do that, you can't have the zip codes too.

    What exactly is it that you want the query to do?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Is this for a combobox RowSource?

    DISTINCT keyword will also provide list of unique city names.

    SELECT DISTINCT CityName FROM Cities ORDER BY CityName;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 08-16-2013, 01:36 AM
  2. Can you place Multiple Field Names to a Single Index?
    By VanillaAwesome in forum Access
    Replies: 2
    Last Post: 08-05-2012, 04:40 PM
  3. Query Entity Names, and Column Names
    By Accidental DBA in forum Queries
    Replies: 1
    Last Post: 07-22-2011, 02:38 PM
  4. Replies: 5
    Last Post: 04-24-2011, 03:14 AM
  5. score and place query
    By ymds in forum Queries
    Replies: 1
    Last Post: 06-10-2010, 06:07 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