I have a table containing details of parishioners who have died in the parish. The source for this were physical registers which were used to create table entries. Entry numbers existed in the registers and formed part of the details that were created in the "Deaths" table. These entry numbers identify a specific persons details and can be used to go to the actual register directly. In the majority of cases the entry numbers were sequential numbers which carried over across the registers. So they started at 1 and currently the latest number is 540 and these numbers have spanned some 5 physical registers. There have been a handful of numbers which were duplicated and these numbers were entered with a trailing alpha code. So in some cases the numbers were 101, 101A, 310, 310A, 399 399 A, etc.
Recently, an older register was found which also started at 1 and I was hoping to enter these details with an entry number starting with a leading zero, so that they appeared earlier in any listing; implying their age.
The entry number field is a text field to accommodate those numbers that have an alpha suffix.
I have created a query with a sorted calculated field, using the VAL function on the entry number, but cannot get the sort to produce these entry numbers in the correct sequence. So for example it gives me 01, 1, 2, 02, 3, 4 ,5, 6 etc (I have only created a couple of test entries with the leading zero to see if the sort works correctly). See images below.
I apologize if this question has been asked before and would appreciate any advice from this forum. Thanks.
Recently, an older register was found which also started at 1 and I was hoping to enter these details with an entry number starting with a leading zero, so that they appeared earlier in any listing; implying their age.
The entry number field is a text field to accommodate those numbers that have an alpha suffix.
I have created a query with a sorted calculated field, using the VAL function on the entry number, but cannot get the sort to produce these entry numbers in the correct sequence. So for example it gives me 01, 1, 2, 02, 3, 4 ,5, 6 etc (I have only created a couple of test entries with the leading zero to see if the sort works correctly). See images below.
I apologize if this question has been asked before and would appreciate any advice from this forum. Thanks.