Re: Unique fields using AAAA instead of/as well as AutoNum
- From: "PC Datasheet" <nospam@xxxxxxxxxxx>
- Date: Sun, 09 Oct 2005 02:54:59 GMT
That's OK! Just use the method with QuoteID when entering quotes to generate
the four character unique field. Orders are related to quotes so just carry
over the four character field when entering an order. Don't calculate the
four characters from OrderID.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@xxxxxxxxxxxxxxx
www.pcdatasheet.com
"BenjieB" <BenjieB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BEAC134E-5C7E-4724-9CA3-2975EDCF5BC4@xxxxxxxxxxxxxxxx
> Hiya,
>
> Thanks for this...greatly appreciated.
>
> As it's for a high value low turnover product application with an
> extremely
> optimistic estimate of 30 quotes max per month, 676 should be more than
> sufficient for a 6 month interim solution. Also am none too sure of the
> feasibility of this due to the user wants/needs to generate the 4char
> during
> the quote stage; ineffect the quote ID becomes the acount ID upon sale as
> it
> were.
>
> Ben
>
> "PC Datasheet" wrote:
>
>> AA to ZZ is 676 records (26*26). Keep your autonumber. Make the last
>> autonumber you have GLAA and create a function that calculates the four
>> characters based on the number of records entered since your last
>> autonumber. For example: say your last autonumber is 34511 and records
>> have
>> been added and none deleted to where your current autonumber is 34536. 25
>> records have been added so your four characters are GLAZ. BTW, you can
>> test
>> if there are any gaps in the numbers to determine if any records have
>> been
>> deleted after 34511.
>>
>> --
>> PC Datasheet
>> Your Resource For Help With Access, Excel And Word Applications
>> resource@xxxxxxxxxxxxxxx
>> www.pcdatasheet.com
>>
>>
>> "BenjieB" <BenjieB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:420CEEA6-0018-4F65-B25A-D0451248BE01@xxxxxxxxxxxxxxxx
>> > Hi,
>> >
>> > Does anyone know of a way of creating an auto generated/increasing in
>> > value
>> > field (key) that uses chars instead of (or in addition to) Autonum e.g.
>> > GLAA,
>> > GLAB, GLAC, GLAD...etc.?
>> >
>> > Any ideas, views, comments or help would be very welcome.
>> >
>> > Thanks
>> >
>> > Ben
>>
>>
>>
.
- Follow-Ups:
- References:
- Re: Unique fields using AAAA instead of/as well as AutoNum
- From: PC Datasheet
- Re: Unique fields using AAAA instead of/as well as AutoNum
- Prev by Date: Re: Mailing Lists in Access 2003
- Next by Date: Re: Mailing Lists in Access 2003
- Previous by thread: Re: Unique fields using AAAA instead of/as well as AutoNum
- Next by thread: Re: Unique fields using AAAA instead of/as well as AutoNum
- Index(es):
Relevant Pages
|