Results 1 to 5 of 5
  1. #1
    LionelSpratt is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Posts
    11

    How to set autonumber with the current Year as Initial value

    Hi guys......I hope this is easy

    As explained in the Title, I want access to generate for me an autonumber, but with the current year as initial value. ( To give new hired employees a unique number)
    For example, we are now in 2013
    If there a new hire, that employee is going to get a unique number 2013001
    The next new hire, will get 2013002
    and so on

    I know how to append a table to set the initial value, but this means, that next year I will have to append a new table again to set the initial value to 2014.
    I want access to do this automatically for me, so that next year a new hire will get the unique number of 2014001, the next one will be 2014002 etc\



    Is this possible ?

    Please be very careful when explaining, since I'm an access novice.

  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,850
    You do not want an autonumber for this purpose.
    You should research Normalization and atomic data.

    There is a good article at http://forums.aspfree.com/attachment...2&d=1201055452

    Good luck.

  3. #3
    LionelSpratt is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Posts
    11
    Quote Originally Posted by orange View Post
    You do not want an autonumber for this purpose.
    You should research Normalization and atomic data.

    There is a good article at http://forums.aspfree.com/attachment...2&d=1201055452

    Good luck.

    Hmm.....not very helpful actually
    Is it something too difficult to accomplish ?

  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,642
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    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
    I thought a direct statement -- you don't want to do that was direct.
    Did you read and understand the info in my response at
    http://forums.aspfree.com/attachment...2&d=1201055452

    I see Paul has given you a link also, and here's another.
    http://www.utteraccess.com/wiki/index.php/Autonumbers

    Please read the info to get the background and rationale based on the experiences of others.

    As for you previous question
    Is this possible ?
    Possible, but not necessarily with autonumber -- since autonumber is guaranteed only to be UNIQUE-------not sequential; may be Positive or Negative.

    And it isn't always well-behaved. In those cases see Allen Browne's article
    http://allenbrowne.com/ser-40.html

    Good luck with your project.

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

Similar Threads

  1. checking if current year
    By snoopy in forum Queries
    Replies: 2
    Last Post: 06-20-2012, 01:46 AM
  2. Auto fill Current year
    By Bhat59 in forum Forms
    Replies: 3
    Last Post: 10-17-2011, 08:56 PM
  3. Replies: 1
    Last Post: 08-02-2011, 06:46 PM
  4. Filet Records by Current Year
    By jbarrum in forum Access
    Replies: 6
    Last Post: 11-19-2009, 11:34 AM
  5. Changing a date to the current year
    By fdnyfish in forum Access
    Replies: 1
    Last Post: 03-01-2008, 08:34 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