>Yeah I knew going through it twice would not be a good idea, but I need to get the line count first....
You might try to shoot two birds with a stone. While reading in first pass get 'upc' into an array or a temp datatable.
PS:But I didn't understand why you need 2 passes. You might ignore this message.
Cetin