You need to decide where to store the running count. My preference is a
CustomDocumentProperty in the invoice template, because you can open the
template itself and reset the counter when you need to. Add an AutoNew macro
to the invoice template -- this runs each time a document is created using
that template. Read the Property from the template, add it as a
customproperty to the document, then increment the property and write it
back to the template.
In the body of the invoice, use a DocProperty field to display the value.
No Bush in 2004 indeed! The sooner the world is free of this bastard, the
sooner we can hope for peace and decency.
Aptiva Dave said:
I need to create an invoice with a counter for the invoice number.
Program will be opened and closed through out the day and the counter needs
to keep up with the number of times the invoice is printed. Can any one
give me some tips on just how to do that?