B
bourdon
I have a table that lists a serial number and a date. There ar
multiple lines for one serial number, signifying a transaction, fo
example:
SN Date
12345 08/30/2005
12345 09/25/2005
12345 10/01/2005
I need to run through the table and assign a value of 1 to the firs
transaction, a 2 for the second, etc., based on the latest dates. S
the table is sorted by serial number then date (descending), and th
earliest date for each unique serial number will be 1, the next 2 an
so on until the serial number changes then it will start from 1 for th
next serial number and sets of dates.
I don't even know where to start. I have a little knowledge abou
recordsets and macros, but am not very good at loops.
Thanks for any help/direction
multiple lines for one serial number, signifying a transaction, fo
example:
SN Date
12345 08/30/2005
12345 09/25/2005
12345 10/01/2005
I need to run through the table and assign a value of 1 to the firs
transaction, a 2 for the second, etc., based on the latest dates. S
the table is sorted by serial number then date (descending), and th
earliest date for each unique serial number will be 1, the next 2 an
so on until the serial number changes then it will start from 1 for th
next serial number and sets of dates.
I don't even know where to start. I have a little knowledge abou
recordsets and macros, but am not very good at loops.
Thanks for any help/direction