I have this table called: "ABC" and inside it are four fields: "SKU" (DataType: Short text), "VID" (DataType: Short text), "Cost" (DataType: Currency) and "Qty" (DataType: Number).
I want to add another field/column called "Line #" that shows the row number so the table will look like this:
I couldn't find any information on how to do this right because some rows have the same values.
Is there any way I can do this in either SQL or VBA?
Code:
SKU VID Cost Qty 123 545 $5 9 123 545 $5 25 145 441 $4 45 488 874 $7 4 474 457 $8 5 145 441 $4 47
Code:
Line # SKU VID Cost Qty 1 123 545 $5 9 2 123 545 $5 25 3 145 441 $4 45 4 488 874 $7 4 5 474 457 $8 5 6 145 441 $4 47
Is there any way I can do this in either SQL or VBA?
Comment