Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use unique ID (auto-incrementing) in text document?

I'm looking or a way to use a unique ID in a text document (not in a spreadsheet, not even in a table). I want to be able to reference existing IDs repeatedly in the text, but I also need a way to insert a unique new ID. Usage could be for example for serial numbers, or similar. I tried with auto-incrementing database fields, but did not really get this working. Either I cannot see the current value in the normal text view (like when mail-merge inserts the data only when printing), and/or I don't know how to reference the ID several times in the same document (without triggering the auto-increment).

I guess this must have been done before, but I could not find any working solution when I searched. Any pointers where to look at?

Thanks in advance.

Use unique ID (auto-incrementing) in text document?

I'm looking or a way to use a unique ID in a text document (not in a spreadsheet, not even in a table). I want to be able to reference existing IDs repeatedly in the text, but I also need a way to insert a unique new ID. Usage could be for example for serial numbers, or similar. I tried with auto-incrementing database fields, but did not really get this working. Either I cannot see the current value in the normal text view (like when mail-merge inserts the data only when printing), and/or I don't know how to reference the ID several times in the same document (without triggering the auto-increment).

I guess this must have been done before, but I could not find any working solution when I searched. Any pointers where to look at?

Thanks in advance.