M
Michael Keck - U of I
I have a query with a subselect to determine if a table
has referential integrity issues with some validation
tables (There are no Foreign Keys in the Access Database
so they can enter data before the Validation Table is
updated)
One part of my subselect looks as follows:
OR NOT EXISTS( SELECT 'X' FROM SAT_SHRGRDE D WHERE
D.shrgrde_vpdi_code = A.shrgrde_vpdi_code AND
D.shrgrde_levl_code = A.bnr_pk1_cd AND
D.shrgrde_term_code_effective = A.bnr_start_term AND
D.SHRGRDE_CODE = A.BNR_GRDE_CODE)
The problem is that one of the values in the
D.SHRGRDE_CODE field = 'A' and the matching field in the
A.BNR_GRDE_CODE field = 'A ' (notice the trailing space),
but the query is saying these are a match.
I dynamically create this query as I have almost 3 dozen
tables to report validation errors.
Is this a Microsoft Access bug or do I not have some
system parameter set correctly.
Personally, a field with a trailing space should NEVER
equal a field with no trailing space.
has referential integrity issues with some validation
tables (There are no Foreign Keys in the Access Database
so they can enter data before the Validation Table is
updated)
One part of my subselect looks as follows:
OR NOT EXISTS( SELECT 'X' FROM SAT_SHRGRDE D WHERE
D.shrgrde_vpdi_code = A.shrgrde_vpdi_code AND
D.shrgrde_levl_code = A.bnr_pk1_cd AND
D.shrgrde_term_code_effective = A.bnr_start_term AND
D.SHRGRDE_CODE = A.BNR_GRDE_CODE)
The problem is that one of the values in the
D.SHRGRDE_CODE field = 'A' and the matching field in the
A.BNR_GRDE_CODE field = 'A ' (notice the trailing space),
but the query is saying these are a match.
I dynamically create this query as I have almost 3 dozen
tables to report validation errors.
Is this a Microsoft Access bug or do I not have some
system parameter set correctly.
Personally, a field with a trailing space should NEVER
equal a field with no trailing space.