lookup to a view to find the last used Document ticket. This number was then
incremented by one to make the new ticket number. This worked fine for about a
year. Then suddenly, the formula just came back with nothing and all the new
documents had a ticket number of 1. The code for this is shown below.
Eventually, I found out why. The problem is to do with the Maximum amount of
data that @DBCOLUMN can handle. That's 64K!
To get round it, I changed the view selection to only get documents newer than
100 days ago. (this may need to be adjusted for your needs. This will need to
be put in as an 'Easy' selection,
using 'Is In The Last' and specifying 100.
What a pain...