creaating a RANDOM and UNIQUE invoice number on insert!

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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?
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139