Access 2003,
Hi All,
I have a table named VehCodes with the following data:
MakeCode, ModelCode
MA , 6
MA , 7
MA , 9
PR , 1
PR , 2
PR , 6
etc
I would like to find the missing seqeunce ModelCode numbers for each MakeCode - from the example above the results would be:
For MA - ModelCode 8
for PR = ModelCodes 3,4,5
I only need a list of MakeCodes with the relavent missing ModelCodes, the format is not relevant.
I have sort of done it in a long winded way by using queries, but this would take quiet some time as there are 81 MakeCodes, with the ModelCodes spanning anywhere from 1 to 999 (never greater than 999 though).
I was thinking if there was maybe a soultion to do this in VBA (combined with SQL)?
Any help in the correct direction will be appreciated.
Thank you.
Michael
Hi All,
I have a table named VehCodes with the following data:
MakeCode, ModelCode
MA , 6
MA , 7
MA , 9
PR , 1
PR , 2
PR , 6
etc
I would like to find the missing seqeunce ModelCode numbers for each MakeCode - from the example above the results would be:
For MA - ModelCode 8
for PR = ModelCodes 3,4,5
I only need a list of MakeCodes with the relavent missing ModelCodes, the format is not relevant.
I have sort of done it in a long winded way by using queries, but this would take quiet some time as there are 81 MakeCodes, with the ModelCodes spanning anywhere from 1 to 999 (never greater than 999 though).
I was thinking if there was maybe a soultion to do this in VBA (combined with SQL)?
Any help in the correct direction will be appreciated.
Thank you.
Michael