If you are wanting to increment the number each time, then just store the last number used in a file, BD, or registry. When making a new invoice retrieve the last number used, and add 1 to it, then store the NEW last number used.
Becca
Somtimes, the easy answer is the hardest to find. :)...