Results 1 to 2 of 2
  1. #1
    kelvinkind is offline Novice
    Windows 8 Access 2013
    Join Date
    Jun 2014
    Posts
    6

    autonumber

    Hi Guys,

    I am trying to set a field that can automatically acquire the next PO#.

    Our PO# is in the format of K-xxxx, where xxxx being a 4 digit number. It will start with K-2084. When I add a new record, the PO# field will find the highest PO# and add 1 to it.



    Assuming the latest PO# is K-2087, when a new record is created, it will automatically set the PO# field's default value to K-2088(K2087+1).

    Can any one kindly suggest a way to do this? or even better some template that have this kind of function?

    Many Thanks,
    Kelvin

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Generating custom unique identifier is a common topic in forum. A quick search on topic should return many threads. Here's a couple:

    https://www.accessforums.net/forms/a...ing-23329.html

    https://www.accessforums.net/access/...ers-21361.html
    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: 4
    Last Post: 11-21-2013, 05:06 PM
  2. Autonumber changes
    By wizardnick in forum Access
    Replies: 5
    Last Post: 09-22-2013, 08:58 AM
  3. Replies: 2
    Last Post: 01-15-2013, 10:04 PM
  4. Help with autonumber
    By GDubbs780 in forum Programming
    Replies: 15
    Last Post: 02-27-2011, 02:27 PM
  5. AUTONUMBER
    By J A F F A in forum Database Design
    Replies: 1
    Last Post: 10-03-2007, 10:30 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