Results 1 to 7 of 7
  1. #1
    Japn is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2015
    Location
    uk
    Posts
    11

    Wink Address DB split into Multiple territories w/o duplicate


    Hi Guys,
    This is my first post so please excuse any Mistakes,

    I had a list of 1800 full addresses including Postcode on excel, I added 2 columns for Co-ordinates then one column that I use to input data when a call needs removing. I then imported to access table and started to use queries to sort our sales into territories of hopefully no more than 26 calls each,
    I used the spare column to input a R for removed then only list null entries in queries then I keep adding postcodes in the postcode criteria column until I get around 26 per Query,

    My Ultimate goal is to Build multiple Tables of no more than 26 calls that I can geocode onto maps, to make it easier and more cost effective for our sales team.

    My Problems are.
    • How do I Prevent Duplicates when entering addresses if new address are entered, I Currently have access creating its own Key
    • I need to be able to track & prevent duplicate postcodes being assigned to more than one query/Territory table.
    • I need either Access to either Produce a Table Report (As in excel) or might be easier if I just import my data back to excel table.


    I kind of think I need new tables for Maps with relationships created between Map table and Territory table. but not sure if this is the best way to go or not.

    Any help appreciated ....

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    How do I Prevent Duplicates when entering addresses if new address are entered, I Currently have access creating its own Key
    ** technically this is easy; the field property in the Table has a No Duplicates selection choice; however in the real world it is more complex due to 'near duplicates' i.e XYZ Co. - XYZ Co - XYZ Inc - XYZ Inc. None of these are duplicates technically but they are all duplicates from the human perspective. So one does need some management and user training to insist that one first looks for an item before entering it.... In more controlled situations - such as Part Lists - the administrator enters it only - and users must use a combo/list box to select it and are not allowed to free form entry.

    I need to be able to track & prevent duplicate postcodes being assigned to more than one query/Territory table.
    ** more or less the same answer as above

    I need either Access to either Produce a Table Report (As in excel) or might be easier if I just import my data back to excel table.
    ** the layout of an Access report can easily be 'continuous' or having an appearance similar to excel; the 'data back to excel' would be referred to as an export, not an import, from the Access perspective

  3. #3
    Japn is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2015
    Location
    uk
    Posts
    11
    [QUOTE=NTC;264920]How do I Prevent Duplicates when entering addresses if new address are entered, I Currently have access creating its own Key
    ** technically this is easy; the field property in the Table has a No Duplicates selection choice;

    Where is this No Duplicates selction choice I cannot find it in Access 2010 table properties, Please explain.

    I need to be able to track & prevent duplicate postcodes being assigned to more than one query/Territory table.
    ** more or less the same answer as above

    What I meant is that Is there a way using relationships between two tables that when I assign an address to a map in a query that I could prevent that postcode being reused in another query.

  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,850
    You can assign Primary Keys to tables. Primary key can not be duplicated. The database software will not allow it.
    Depending on your set up, you can create unique compound indexes on combinations of fields and these will not allow duplicates.

    Your bigger task in my view is to define your territories such that they follow/adhere to postal code boundaries. This may not be as difficult as it could be if you can agree to street addresses within postal codes to be uniquely assigned to a territory.

    Sort out the details of exactly what a territory means to your business.
    Google maps or mapquest etc may be able to help you with your mapping needs.

    japn -- you should probably work through this tutorial from RogersAccesLibrary. It will help you with the concepts of Normalization, table and relationships etc.

    Good luck

  5. #5
    Japn is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2015
    Location
    uk
    Posts
    11

    Wink

    japn -- you should probably work through this tutorial from RogersAccesLibrary. It will help you with the concepts of Normalization, table and relationships etc.

    Good luck[/QUOTE]
    Thank you so much what a greatly written document, I have read loads on creating relationships but this has to be the clearest I have read so far, and I think creating relationships with a map table & separate postcode table might just work.

    I can define my territories by post code but as they are not sequential but I do this manually with an almanac which is not to bad as I will only have to do it once.
    Thanks again I will keep updating this thread as I get it working.

  6. #6
    Japn is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2015
    Location
    uk
    Posts
    11
    Just wondering where is the Tutorials section located, specifically Rogers access Library???

  7. #7
    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,850
    Glad you found the tutorial helpful.
    See this http://www.rogersaccesslibrary.com/


    Last edited by orange; 02-21-2015 at 11:48 AM. Reason: spelling

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

Similar Threads

  1. Replies: 7
    Last Post: 01-30-2015, 03:27 PM
  2. duplicate vendor address
    By ETjoumas in forum Queries
    Replies: 3
    Last Post: 08-20-2014, 05:45 PM
  3. Replies: 2
    Last Post: 08-22-2013, 12:02 AM
  4. Multiple Email Address
    By Tomfernandez1 in forum Forms
    Replies: 15
    Last Post: 09-15-2011, 01:52 PM
  5. Input Mask for an IP Address and Mack Address
    By baksg1995 in forum Access
    Replies: 18
    Last Post: 06-23-2009, 12:33 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