Results 1 to 2 of 2
  1. #1
    BudMan is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Location
    Stem, NC USA
    Posts
    20

    Question Generating Sequential Numbers for Invoices, etcetera

    Okay, I am fairly new to Access. I am trying to create a database for my company. Watching tutorials, etcetera, I have gotten most of what I wanted to accomplish done. However, I do have one problem; creating sequential numbers for invoices.



    I have read that it is a bad idea to use the “auto number” function since it can lead to having erroneous numbers being used. I have found one site that sort of explained how to use VBA code to force a new sequential number based on the last used number, but I never could get it to work correctly. Frankly, I do not know VBA coding.

    Does anyone have an “easy to understand” method to accomplish this task? It would be great if Microsoft had, a function like this built in; however, it does not.

    If it would help, I can be contacted off-list.

  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,931
    Generating custom unique identifier is a common topic. Search forum. Here is a start:
    https://www.accessforums.net/forms/c...ble-41863.html
    https://www.accessforums.net/queries...ery-49599.html

    How complicated the code is depends on how complex the identifier.
    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. Add letters to sequential numbers
    By bassplayer79 in forum Programming
    Replies: 29
    Last Post: 09-12-2013, 04:20 AM
  2. Sequential numbers...
    By jlgray0127 in forum Programming
    Replies: 1
    Last Post: 04-03-2013, 10:06 AM
  3. Sequential Numbers
    By cactuspete13 in forum Queries
    Replies: 5
    Last Post: 03-27-2013, 12:14 PM
  4. Generating sequential numbers automatically
    By Malcolm41 in forum Access
    Replies: 2
    Last Post: 07-15-2012, 08:20 PM
  5. Replies: 4
    Last Post: 07-27-2011, 12:42 PM

Tags for this Thread

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