I have a query of data for which contains an InvoiceID field. There are several instances where the InvoiceID field will be duplicated. In these instances, I want to create a custom column that will increment starting with 1 then 2 then 3 ans so on.
Is there a function or anything that I can create within the query to have this column increment when in fact it does find a duplicate.
In Excel, can write an "easy" IF statement to compare the value of the field to the field above to see if it matches then add +1 to the increment field. I'd like to perform the same thing in Access if at all possible.
Any suggestions?
Thanks!
Is there a function or anything that I can create within the query to have this column increment when in fact it does find a duplicate.
In Excel, can write an "easy" IF statement to compare the value of the field to the field above to see if it matches then add +1 to the increment field. I'd like to perform the same thing in Access if at all possible.
Any suggestions?
Thanks!