grantwilliams
Programmer
Hi,
I need to generate a report for matters recorded in a database which don't have a correct file number recorded. I want to find all records for a particular year where the file number is recorded incorrectly. The file numbers are stored in the format XXXX/xxxxxx where XXXX is the year, and xxxxxx is the file number for that year e.g. 2003/000001
I also have another field (IDCode) which is a number corresponding to the year e.g. 3 for 2003, 2 for 2002 etc.
Is there a way of using VBA to find all records for the year which are not in the correct format, have the default value of 'XXXX/' OR have a value of 'XXXX/000000' (which is our default for matters not on a paper file)???
The column name is FileNo and the table is tRegister.
I have an input mask on the form used to enter the file numbers, but as the database holds some older data, I am unable to put the mask over the column in the table, just the new data entered.
Has anybody got any ideas or know-how on this? I'm only a newbie to VBA so any and all help is appreciated.
Grant
I need to generate a report for matters recorded in a database which don't have a correct file number recorded. I want to find all records for a particular year where the file number is recorded incorrectly. The file numbers are stored in the format XXXX/xxxxxx where XXXX is the year, and xxxxxx is the file number for that year e.g. 2003/000001
I also have another field (IDCode) which is a number corresponding to the year e.g. 3 for 2003, 2 for 2002 etc.
Is there a way of using VBA to find all records for the year which are not in the correct format, have the default value of 'XXXX/' OR have a value of 'XXXX/000000' (which is our default for matters not on a paper file)???
The column name is FileNo and the table is tRegister.
I have an input mask on the form used to enter the file numbers, but as the database holds some older data, I am unable to put the mask over the column in the table, just the new data entered.
Has anybody got any ideas or know-how on this? I'm only a newbie to VBA so any and all help is appreciated.
Grant