D
DaveKristof
[MS Access 2000]
I have two tables with a linked primary key. I am using an Unmatched
Query to find all the results in one table that do not appear in the
other table based on the primary key. So when the two tables are
identical, the query should return 0 rows, and when there are extra
rows in the first table, the extra ones should all return as results.
So everything works fine when there are new rows, but the problem
occurs when the tables are the same. It should return 0 rows, but it
actually returns 1 blank row!
In my code, I am checking to see if there are any new entries or if
there are no new entries. The easiest way to do this is to check the
row count of the unmatched query. If it's >0, there are new entries,
if it's 0 there are no new entries. But that one blank row always
shows up even when there are no new entries! So essentially 0 new
entries always looks the same as 1 new entry!
I have tried setting the query criteria to "Is Not Null" and it still
returns these null values.
I have tried creating a second query that just draws information from
this one and it still returns the 1 blank row. I have also tried
adding the criteria "Is Not Null" to this query, and it still returns
the blank row.
Is there some way to get rid of this blank row?
Or is there an easy way (in code) to check the value of the first
result in a query to see if it is null like the DCount for finding row
count?
I have two tables with a linked primary key. I am using an Unmatched
Query to find all the results in one table that do not appear in the
other table based on the primary key. So when the two tables are
identical, the query should return 0 rows, and when there are extra
rows in the first table, the extra ones should all return as results.
So everything works fine when there are new rows, but the problem
occurs when the tables are the same. It should return 0 rows, but it
actually returns 1 blank row!
In my code, I am checking to see if there are any new entries or if
there are no new entries. The easiest way to do this is to check the
row count of the unmatched query. If it's >0, there are new entries,
if it's 0 there are no new entries. But that one blank row always
shows up even when there are no new entries! So essentially 0 new
entries always looks the same as 1 new entry!
I have tried setting the query criteria to "Is Not Null" and it still
returns these null values.
I have tried creating a second query that just draws information from
this one and it still returns the 1 blank row. I have also tried
adding the criteria "Is Not Null" to this query, and it still returns
the blank row.
Is there some way to get rid of this blank row?
Or is there an easy way (in code) to check the value of the first
result in a query to see if it is null like the DCount for finding row
count?