Re: Increment Number Format

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Roger Carlson (NO-Rog3erc-SPAM_at_hotmail.com)
Date: 05/10/04


Date: Mon, 10 May 2004 14:04:01 -0400

You can't use an Autonumber to accomplish this. You cannot format or
control an autonumber in any way. Rather, you will have to create your own
incrementing function.

Take a look at the following downloadable samples:

http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='Increment%20Alpha%20Field.mdb'

http://www.rogersaccesslibrary.com/download3.asp?SampleName=AutonumberProblem.mdb

-- 
--Roger Carlson
  www.rogersaccesslibrary.com
  Reply to: Roger dot Carlson at Spectrum-Health dot Org
"DazedConfused" <dw.nospam@nospamyahoo.com> wrote in message
news:CVNnc.57242$sK3.46935@nwrddc03.gnilink.net...
> I know this must have been answered before but I am new to Access 2000.
>
> I have a incrementing AutoNumber field set up for an Invoice Numbering
> System.
> How or what formatting code would/could I use to accomplish this?
> I would like to format the number like this and increment it by 1 each
time
> I create an Invoice.
>
> Field Name: InvoiceID
>
> example:  WSI-0001, WSI-0002, etc
>
> Thanks in Advance
>
>


Relevant Pages

  • Re: Increment number based on list box
    ... I say 'number' because the format you're using is not numerical. ... So what you have to be doing is storing the number and then formating it ... You can have a table to store just the one value and keep incrementing it. ... Is there a macro that can accomplish this ...
    (microsoft.public.access.forms)
  • Re: MS Access
    ... autonumber format with a preset layout -. ... The reason for this is that I use this dataset in SAS coding, ... do so from a Query; you can include a formatted field ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Create a text box that automatically counts in forms
    ... If the number is to be seen by the user, I would not use autonumber, since ... there will almost ineveitably be gaps in the number sequence. ... for one method of adding an incrementing number using code. ... >> entry I would like the claim# to be something like CCA-1 and then count ...
    (microsoft.public.access.forms)
  • RE: Autonumber upon opening a form
    ... I've changed the field in the database from Autonumber to a text ... that you will experience gaps in the numbering sequence. ... Year, Month, and an incrementing number as in 2006040001, 2006040002, ... not actually created until you start entering data. ...
    (microsoft.public.access.forms)
  • Re: UNION ALL Query
    ... "Brook" wrote in message ... yes I did you a format for the ... >>> display of my Autonumber: ... >>>>display of your autonumber fields. ...
    (microsoft.public.access.queries)