C
Christian
Hi NG,
I'm trying to create a query that will return rows from a table when the
content is not in line with a set of rules, e.g. fieldA has to be 4
characters long, field B can only be 4 or 9, field can not be zero etc.
The purpose of this is to validate an external file and locate possible
errors.
The external file is loaded to a table and the query is run.
Question:
Should I create one query that will contain all possible checks and assign
the checks a criteria in each row
or should I create a query for each check and them combine all the queries
afterwards?
I would like that each error adds a error message to the row selected, e.g
"Field A: not 4 characters long" or "Field B: Value can only be 4 or 9" etc.
if this is truly advance then one row might fail on several checks and the
error message for the row should then be a combination of these error
messages.
Any suggestions are warmly welcome
- Chr
I'm trying to create a query that will return rows from a table when the
content is not in line with a set of rules, e.g. fieldA has to be 4
characters long, field B can only be 4 or 9, field can not be zero etc.
The purpose of this is to validate an external file and locate possible
errors.
The external file is loaded to a table and the query is run.
Question:
Should I create one query that will contain all possible checks and assign
the checks a criteria in each row
or should I create a query for each check and them combine all the queries
afterwards?
I would like that each error adds a error message to the row selected, e.g
"Field A: not 4 characters long" or "Field B: Value can only be 4 or 9" etc.
if this is truly advance then one row might fail on several checks and the
error message for the row should then be a combination of these error
messages.
Any suggestions are warmly welcome
- Chr