PDA

View Full Version : Document numbering


odivm
12-22-2004, 06:08 AM
Hello,
I'm new to this forum and I have a problem that have been hauting me for quite some time.

I have a couple of word templates for my company's users and I would like to have a way to auto number the documents, FAX messages for exemple. i.e.: if I'm creating FAX nr.1, the next user would create FAX nr. 2, but word would number the document automaticaly. I have MS SQL Server installed and I thought about keeping the last created document number in a table. Then, the next time someone wound create a new document, word should make a query to that table to see the number of the last doc. and add 1 to that value. Then when the doc. was saved, word should update that table too.

Any idea about how I should do this?????