I would like or a SQL statement or a VBA Function that can identify the 10 missing numbers of a sequence.
For instance
I have tblResults with 15 fields that receive random numbers from 1 to 25. There is no repetition on each sequence of 15 numbers. Only exclusive numbers on the sequence for each record of the table:
tblResults Fields
number1
number2
...
number15
I would like to know the missing numbers of each record of the table.
Example
My First Record Contains the sequence: 1,4,5,6,8,9,11,14,15,16,19,21,22,24,25
The missing numbers for my first record: 2,3,7,10,12,13,17,18,20,23
PS.: Each number of the sequence is allocated on each field of my tblResults. So the function or SQL Statement will check each field to find the missing numbers.
The sequence varies.
Example it can be like: 6,8,9,10,11,12,13,15,16,17,18,19,21,23,25
Missing numbers: 1,2,3,4,5,7,14,20,22,24
For instance
I have tblResults with 15 fields that receive random numbers from 1 to 25. There is no repetition on each sequence of 15 numbers. Only exclusive numbers on the sequence for each record of the table:
tblResults Fields
number1
number2
...
number15
I would like to know the missing numbers of each record of the table.
Example
My First Record Contains the sequence: 1,4,5,6,8,9,11,14,15,16,19,21,22,24,25
The missing numbers for my first record: 2,3,7,10,12,13,17,18,20,23
PS.: Each number of the sequence is allocated on each field of my tblResults. So the function or SQL Statement will check each field to find the missing numbers.
The sequence varies.
Example it can be like: 6,8,9,10,11,12,13,15,16,17,18,19,21,23,25
Missing numbers: 1,2,3,4,5,7,14,20,22,24