View Full Version : Forcing two auto-numbers in table


rosea2
03-30-2005, 05:47 AM
Hi There,

I have a table that has two numbers, both require incrementing with each record.

These take the form of "00"0"/05" and "Book11 Enc"0.

I want these to update automatically but Access won't let me use two autonumbers in same form. Does anyone have a suggestion to get round it ?

Thanks.
Alex.

KenHigg
03-30-2005, 06:26 AM
Alex, It is generally not recommended that you use the auto number where you need a method to sequentially number data elements. There are several reasons but I'll spare you the speech. A better solution (In my opinion), would be to write a short function that would return the sequential part, maybe using a dmax()+1 method.

:) Ken

Pat Hartman
03-30-2005, 01:54 PM
The autonumber is used to provide a unique identifier for a table row. Nothing less, nothing more.

rosea2
03-30-2005, 11:22 PM
I'm quite new to all this and don't really understand the way to do this.

Can anyone give me/point me in the direction of some sample code ?

Alex.