Results 1 to 2 of 2
  1. #1
    HeadGasket's Avatar
    HeadGasket is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2011
    Location
    Sonoma County, Northern California
    Posts
    33

    Concatenate =Now() with dash and two digit number

    Tossing out my previous idea for generating a invoice number and thinking about joining =Now() with a "dash" and two digits. The two digits at the end would start at -01 for the first invoice number of the day and count up for each additional invoice number created throughout the day (-01, -02, -03, etc..). The following day, the dash number would reset back to -01 for the first invoice number of that day.

    Like this for 1/10/2012..... and then 1/11/2012:

    40918-01
    40918-02
    etc....

    40919-01


    40919-02
    40919-03
    etc....

    Is this possible?

    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    It is possible. Requires VBA code.

    Could just treat invoice numbering like check numbers. They start at some value and increment by 1 forever. Do you have to account for every number, no gaps in sequence?

    Check out this recent thread on same topic https://www.accessforums.net/access/...ber-20506.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. Dash Board.
    By cap.zadi in forum Forms
    Replies: 1
    Last Post: 09-14-2011, 08:10 AM
  2. Access 2007: Can't Display 17 Digit Number
    By HedgeHog in forum Access
    Replies: 9
    Last Post: 08-14-2011, 01:46 PM
  3. Entering 16 digit numbers into number field
    By chrismid259 in forum Access
    Replies: 7
    Last Post: 12-14-2010, 10:40 AM
  4. I need to remove a dash from a number string.
    By catguy in forum Programming
    Replies: 3
    Last Post: 02-18-2010, 02:56 PM
  5. Concatenate two fields (text & number) for key field
    By Larry Elfenbein in forum Forms
    Replies: 2
    Last Post: 11-10-2005, 07:45 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