Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Don Pacino #1
creaating a RANDOM and UNIQUE invoice number on insert!
Hello,
I have created an access database where infomation is inserted using ASP and
automated functions inDW MX 2004.
Now... I need a way to provide the user with a unique sort of invoice number
thingy, but it must be always unique and reliable.
I just bought a few DVDs from amazon and receievedan invoice number something
like this 4701948q-487641-148714891for my order, I dont mind the length, as
long as it is Unique.
Does anyone know how i can acieve something similar?
Don Pacino Guest
-
Random Number
because i don't want on store a long number into the database. i used #right(CreateUUID(), 5)#, don't you think it will get the duplicated? -
Auto generate unique order number sequential
Hi: I need help on how to code in a CFFORM an order number. This order number must be auto generated, be unique and sequential. By the way I'm... -
Select after insert to the unique column
On Wed, Dec 08, 2004 at 14:50:04 +0100, Julian Legeny <legeny@softhome.net> wrote: Depending on what you really want to do, you could do each... -
counting number of unique entries under a column
hi, i am wanting to count the number of unique rows under a certain column. i want to count how many times a page has been accessed. how i plan to... -
Random number for ASP
Do you mean a random integer (-1, 0, or 1) or any real number >= -1 and <= 1? "Ricardo" <renetm2003@yahoo.com> wrote in message... -
bthouin #2
Re: creaating a RANDOM and UNIQUE invoice number on insert!
Why don't you just use Autonumber ? That's unique enough. Otherwise, you
can of course use a UUID (which is what Amazon is using), and there must
be plenty of code samples on the Net explaining how to generate one. But
it's very unwieldy, and, given that you're using Access, I guess you're
not going to have millions of invoice, right ? So just use Autonumber,
and forget about Amazon-like order numbers. They have millions of order
every day. Access wouldn't take that anyway...
Regards
Bernard
Don Pacino wrote:> Hello,
>
> I have created an access database where infomation is inserted using ASP and
> automated functions inDW MX 2004.
>
> Now... I need a way to provide the user with a unique sort of invoice number
> thingy, but it must be always unique and reliable.
>
> I just bought a few DVDs from amazon and receievedan invoice number something
> like this 4701948q-487641-148714891for my order, I dont mind the length, as
> long as it is Unique.
>
> Does anyone know how i can acieve something similar?
>bthouin Guest



Reply With Quote

