Results 1 to 4 of 4
  1. #1
    Foqus is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2014
    Posts
    1

    Access 2007 - Creating and Storing a Sequence Number in a Table

    I'm relatively new to MS Access and creating a Document Register to maintain unique identifiers for documents based on Project and Document Information.

    My Table is as follows:

    Project : Document Type : Sequence Number


    ABC Email 1
    ABC Memo 1
    DEF Email 1
    ABC Email 2

    I want the Sequence Number to Autogenerate/AutoCalculate. It should only increment when there are previous records and the record would otherwise be a duplicate. It needs to be stored as part of the field because it cannot change once provided.

    Please help!

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    don't mistake a unique identifier for a sequence number.

    Your unique identifier should not, in most cases, be subject to any data entry. An autonumber will work fine for you. A sequence number is a different requirement that you want to figure out at the time of data entry.

    in your case you would like run something that used dcount to find out if there are any records with a certain project/document type combination, if there ARE you will want to find the dmax value to find out the highest sequence number you currently have, then add 1 to that value

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    for ABC,Email,2 to generate - you must have query that finds ABC,Email,Max

    and then increment up Max+1

  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,849
    Foqus,

    Recommend you work through this tutorial before getting too involved in Access syntax etc.

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

Similar Threads

  1. Show next number in sequence
    By cbrsix in forum Programming
    Replies: 1
    Last Post: 08-15-2013, 04:09 PM
  2. Add sequence number to time punch table
    By aflamin24 in forum Queries
    Replies: 1
    Last Post: 07-20-2012, 05:43 PM
  3. Enter new number in sequence in PO
    By tchirpich in forum Access
    Replies: 30
    Last Post: 12-30-2011, 11:24 AM
  4. Replies: 2
    Last Post: 11-21-2011, 10:48 AM
  5. Replies: 1
    Last Post: 05-23-2011, 02:15 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