A
Aurora
I am using Access 2000
I am trying to create a Db that will automatically number,
in increments of 1, a record such as a box number within
the record. Up to this point I have always used the
autonumber feature for the field (box number) i wanted to
increment. But I have been told on many occasions that
this is not a good idea.
It has been suggested that I use the DMax function, but I
am not sure of where to put the Dmax function. For ex:
In DbOne, I have a field that is labeled [boxnumber] and
is an autonumber. Now I want to created a field
[realboxno] that takes the largest autonumber from
[boxnumber] and adds one to it. The way I understand it
the autonumber field will run in the background while the
[realboxno] will show up on the forms and reports. This
is how I think the formula goes, but it is not working.
DMax("[boxnumber]","DbOne")+1 I must not be putting it
in the right property of [realboxno]. Can anyone help me
or at least point me in the right direction?
Aurora
I am trying to create a Db that will automatically number,
in increments of 1, a record such as a box number within
the record. Up to this point I have always used the
autonumber feature for the field (box number) i wanted to
increment. But I have been told on many occasions that
this is not a good idea.
It has been suggested that I use the DMax function, but I
am not sure of where to put the Dmax function. For ex:
In DbOne, I have a field that is labeled [boxnumber] and
is an autonumber. Now I want to created a field
[realboxno] that takes the largest autonumber from
[boxnumber] and adds one to it. The way I understand it
the autonumber field will run in the background while the
[realboxno] will show up on the forms and reports. This
is how I think the formula goes, but it is not working.
DMax("[boxnumber]","DbOne")+1 I must not be putting it
in the right property of [realboxno]. Can anyone help me
or at least point me in the right direction?
Aurora