D
Dorci
Is it possible to use autonumber to generate a multiple-field key? For example:
OrderID = 123 ProductID = 1
OrderID = 123 ProductID = 2
OrderID = 124 ProductID = 1
OrderID = 124 ProductID = 2
OrderID = 124 ProductID = 3
In this example, Orders and Products are two tables with a one-to-many relationship. I'd like the ProductID number to be generated by autonumber, but it would have to restart at 1 for each OrderID.
OrderID = 123 ProductID = 1
OrderID = 123 ProductID = 2
OrderID = 124 ProductID = 1
OrderID = 124 ProductID = 2
OrderID = 124 ProductID = 3
In this example, Orders and Products are two tables with a one-to-many relationship. I'd like the ProductID number to be generated by autonumber, but it would have to restart at 1 for each OrderID.