Hi.
I tried googling this for a while but I can't figure it out.
I am importing multiple tables from a few different people, and need to assign a unique, sequential sku code to each record and add it to a main, combined table.
So person A is sending me a table with 100 records and all sku's are 0, (its primary key is an autonumber field). I need to reference the last sku in the main table, (example, 32,126) and number all these records incrementally starting from 32,127. Then, i will add these records to the main table.
Person B is also sending me a table with 100 records and all sku's are 0, and I need the sku's to start from 32,227 (the last sku now in the main table).
I believe I have to use the dmax function but I haven't figured out how to do it in a query for multiple records. Most forums just explained how to do it in a form.
If someone could help me with this, I would really appreciate it.
I tried googling this for a while but I can't figure it out.
I am importing multiple tables from a few different people, and need to assign a unique, sequential sku code to each record and add it to a main, combined table.
So person A is sending me a table with 100 records and all sku's are 0, (its primary key is an autonumber field). I need to reference the last sku in the main table, (example, 32,126) and number all these records incrementally starting from 32,127. Then, i will add these records to the main table.
Person B is also sending me a table with 100 records and all sku's are 0, and I need the sku's to start from 32,227 (the last sku now in the main table).
I believe I have to use the dmax function but I haven't figured out how to do it in a query for multiple records. Most forums just explained how to do it in a form.
If someone could help me with this, I would really appreciate it.