This is how I would do it.
1. First, create a query using this table. The first 2 columns are the same as those in the table. The next 2 columns should be
NumLen: Len(strIndexNum)
LeaderLen: IIF(NumLen=1, 0, IIF(NumLen=2, 2, IIF(NumLen=3, 4, 6)))
where strIndexNum is the field name of the...