>Okay, I win the stupidest dog trick of the year award....
>
SET PREACH ON
This would have been avoided had you used a variable naming convention for your file handle:
lhInvoice
Helps code readability, and avoids variable/field confusion.
SET PREACH OFF
Erik Moore
Clientelligence