Results 1 to 4 of 4
  1. #1
    bonbon68 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    2

    Question generating automatic numbers in a database

    I'm a newby - I set up am RMA database and am trying to set it up so that it generates a new RMA number starting from a specific number - The rma numbers were paper generated in the past and am currently on number 27234 - need it to generate numbers automatically from this point forward, I would like to be able to do it when they click on the add record button on the form



    the field is currently called RMA_NO and is set up as a text field - I started to doing it; setting up a numeric field called newrma. Now I am lost. I'm not familiar with programming so please bare with me. HELP!!??? someone pleeeeeese

  2. #2
    KathyL is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    94
    Quote Originally Posted by bonbon68 View Post
    I'm a newby - I set up am RMA database and am trying to set it up so that it generates a new RMA number starting from a specific number - The rma numbers were paper generated in the past and am currently on number 27234 - need it to generate numbers automatically from this point forward, I would like to be able to do it when they click on the add record button on the form

    the field is currently called RMA_NO and is set up as a text field - I started to doing it; setting up a numeric field called newrma. Now I am lost. I'm not familiar with programming so please bare with me. HELP!!??? someone pleeeeeese
    A table can have a field type of 'autonumber'. It would normally start numbering at #1. But you can append in a similar record from a 2nd table that has the field defined as numeric, with just your starting number and it should then continue numbering from that point.

  3. #3
    bonbon68 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    2

    number generation

    How would I do this?

  4. #4
    KathyL is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    94
    Quote Originally Posted by bonbon68 View Post
    So I can have the field be autonumbered and copy the data into that field and it will automatically generate the next number from there? What if they are out of sequence right now? But I want it to automatically display the new number when I click the add record button also
    Yes, it will auto generate the next number from the number you append in. Access only controls the next number to generate. It could care less what previous values are in records in the table.

    Yes, you can have previous records in the table, with gaps in the sequence (perhaps you deleted records).

    Test it. Try it.

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

Similar Threads

  1. Replies: 7
    Last Post: 10-19-2011, 07:17 PM
  2. Replies: 1
    Last Post: 02-17-2011, 10:57 PM
  3. Automatic Serial Numbers
    By Mitch87 in forum Access
    Replies: 9
    Last Post: 02-18-2010, 12:57 PM
  4. Inventory Database: Automatic Adjustments?
    By MediaVue in forum Access
    Replies: 1
    Last Post: 02-04-2010, 03:08 PM
  5. generating random numbers on form
    By anitra in forum Forms
    Replies: 1
    Last Post: 02-14-2006, 10:08 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