Incremental Numbering

B

Brook

Good Day,

I currently use three tables for my products, all of which have "custom"
order id's.

tblStock - orderid = "NW-" 0000 -- Autonumber
tblcustom - orderid = "KI-" 0000 -- Autonumber
tblSamples - orderid = "SP-" 0000 -- Autonumber

I have been told that using Autonumber inhibits what I do.. can anyone help
me with setting up an alternate method of an incremental numbering system?

Thanks,

Brook
 
J

Jeff Boyce

Brook

If you are trying to push three facts into one field, yes, you will have
problems getting the Autonumber datatype to fit. But you don't want to do
that anyway -- this is poor data design.

A quick glance at your description makes me wonder why you have three
different tables? If you had a single table with one additional field to
hold Stock/Custom/Sample, you could use that field to hold your "indicators"
(whatever "NW", "KI", "SP" represent).

If you want to concatenate the three "facts" together, store them as
separate fields, and concatenate them in queries.

If you want to use a "custom autonumber" (a "roll your own" numbering
routine), check mvps.org, or search Google.com for this topic ("custom
autonumber").
 
B

Brook

The reason for the three tables is because of the three types of "Orders"
that I have for my company.

I would like to have one table with all my orders, but I am unsure how to
set this up. Because for each of my three types of orders, I want the order
numbers to be sequencial.

Any tips for me?

Brook
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top