As appealing as John's method is, you don't need to code one single line.
Print the amount of tickets you need. Then use your word processor (Word, TextMaker, Wordpad), insert a page number (auto number) where the ticket number should appear, select the font, define 10.000 pages for the document and print. Though I don't know about Word, I know this works with TextMaker, which is similar to Word.
Or you can use PageMaker or InDesign for this job as well: just define the auto page numbering on the Master Pages, specify 10.000 pages and print.
No hair pulling involved ;-}
--------------------//--
We can't solve problems by using the same kind of thinking we used when we created them.
--------------------//--
Bookmarks