Results 1 to 2 of 2
  1. #1
    Bracon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    1

    Field Reset & Increment

    Hi All,



    I have inherited a Change Request System that was created using Multiple Excel files (ughhh....). This system has grown out of control and is no longer manageable.
    I need to keep a similar format to the previously used system parameters as not to duplicate previously used numbers, records, etc.. Also if possible I would like to import some or all of the previously used data. Secondly I want to keep a similar format as this will make transitioning easy for users.

    I am looking for help and ideas on how to create a field that will Reset with a new record creation in one table and Increment by five.
    Table MCR is where I keep project details, then I have a second TASK table where I would like a task number field to Reset to ten with every new MCR record, then increment by 5 for every new task record. Both tables will have an auto number PK that no one will see.

    It would look something like this

    Tbl_MCR -- PK 1 -- MCR_Nbr 100
    Tbl_Task -- PK 1 -- Task_Nbr 10
    Tbl_Task -- PK 2 -- Task_Nbr 15
    Tbl_Task -- PK 3 -- Task_Nbr 20

    Tbl_MCR -- PK 2 MCR_Nbr 101
    Tbl_Task -- PK 4 -- Task_Nbr 10
    Tbl_Task -- PK 5 -- Task_Nbr 15
    Tbl_Task -- PK 6 -- Task_Nbr 20

    Any and all ideas and solutions are appreciated

    Thanks,

    Bradley

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Generating custom unique identifiers is a common topic. Here is one for starters
    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. Reset a field when a new day starts
    By ashraf_al_ani in forum Forms
    Replies: 6
    Last Post: 08-05-2014, 10:02 AM
  2. Replies: 3
    Last Post: 05-21-2014, 05:38 PM
  3. Auto Increment Reset
    By Sibtain in forum Programming
    Replies: 3
    Last Post: 10-25-2012, 01:59 AM
  4. Replies: 15
    Last Post: 05-17-2012, 01:12 PM
  5. Reset autonumber in a concatenate field
    By Fish218 in forum Forms
    Replies: 6
    Last Post: 03-13-2012, 11:58 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