Results 1 to 4 of 4
  1. #1
    jasonyard is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    2

    Creating Unique Numbers based off of another field of info

    I am trying to figure out a way to look at a certain field (address) and based on the unique value of that field, create a unique number in another field (address_hh). Any help would be appreciated.



    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    Could just concatenate address with autonumber type field. Otherwise, requires code. Generation of custom unique identifier is a common topic. Here is one thread for starters: https://www.accessforums.net/access/...nce-40410.html
    Last edited by June7; 01-28-2014 at 02:42 PM.
    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.

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    The technique you are looking at is called hash-coding. I know very little about it, so you will have to look it up.

    Why would you want to do this? Addresses are not guaranteed to be unique, in many applications.

    HTH

    John

  4. #4
    jasonyard is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    2
    Quote Originally Posted by John_G View Post
    Hi -

    The technique you are looking at is called hash-coding. I know very little about it, so you will have to look it up.

    Why would you want to do this? Addresses are not guaranteed to be unique, in many applications.

    HTH

    John
    In my company we give a unique number (address household) to everyone's address. So if there are 3 people with your address, they be 1000 and the 2 people with my address will be 1001 and so on. I will look in to hash coding.

    Thanks.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-01-2013, 07:00 AM
  2. Replies: 14
    Last Post: 05-13-2013, 12:53 PM
  3. Replies: 13
    Last Post: 05-01-2013, 09:01 AM
  4. Replies: 1
    Last Post: 02-23-2012, 11:48 AM
  5. Replies: 3
    Last Post: 10-18-2009, 08:38 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