J
Jackson via AccessMonster.com
Hi,
In my database, my main table's primary key is a composite key of an integer
and a letter. The order entry form assigns Dmax +1 to create the order key
for most records.
However, we import some orders from another system into a seperate table,
records are then appended to the main table. If it's a single record, I can
simply again make the ID field the Dmax + 1. However, if there are two
records being appended, it tries to make both integers the same number. I
can't use autonumber for the field for other reasons.
Is there a way I can make the append query ID field Dmax("ID", "tblOrder") +
(record number)
That way it would sequentially increment by one for each record. I just don't
know how to define the record number.
In my database, my main table's primary key is a composite key of an integer
and a letter. The order entry form assigns Dmax +1 to create the order key
for most records.
However, we import some orders from another system into a seperate table,
records are then appended to the main table. If it's a single record, I can
simply again make the ID field the Dmax + 1. However, if there are two
records being appended, it tries to make both integers the same number. I
can't use autonumber for the field for other reasons.
Is there a way I can make the append query ID field Dmax("ID", "tblOrder") +
(record number)
That way it would sequentially increment by one for each record. I just don't
know how to define the record number.