A
Andre Laplume via AccessMonster.com
I am converting a Crystal Report which I believe looks at SQL server data
(for which I am only secured to read) to a similar MsAccess routine. There
is a root table linked to numerous other tables with outer joins. We want
to find all entries in the root table that have no corresponding entries in
the all the other tables. Let me cite a simpler example:
TableA links to TableB on 'key'. Use an outer join because you want all
records in TableA for which no entry exists in TableB. So you pull into
the query TableA.key with a condition TableB.key Is Null.
Here's the problem. When I run this in Crystal Reports I get, say, 50
records. When I run it in MsAccess I get, say, 52 records. When I look at
the values of TableB.key in MsAccess (for the extra two records) I do NOT
see a blank/null (which Crystal appears to see) but rather: #Deleted. So
somehow the Crystal software inteprests whatever is actually in the table
as Null (which is desirable) where as Access does not. Problem is I can
not figure out to qualify on #Delete....I can not use: Is Not Null, that
would bring in other records I do not want......I am guessing the powers
that be are tagging deleted records and holding onto them.....again out of
my control...EVER RUN INTO THIS, IS THERE A WAY TO ELIMINATE THOSE RECORDS
TAGGED AS DELETED?
(for which I am only secured to read) to a similar MsAccess routine. There
is a root table linked to numerous other tables with outer joins. We want
to find all entries in the root table that have no corresponding entries in
the all the other tables. Let me cite a simpler example:
TableA links to TableB on 'key'. Use an outer join because you want all
records in TableA for which no entry exists in TableB. So you pull into
the query TableA.key with a condition TableB.key Is Null.
Here's the problem. When I run this in Crystal Reports I get, say, 50
records. When I run it in MsAccess I get, say, 52 records. When I look at
the values of TableB.key in MsAccess (for the extra two records) I do NOT
see a blank/null (which Crystal appears to see) but rather: #Deleted. So
somehow the Crystal software inteprests whatever is actually in the table
as Null (which is desirable) where as Access does not. Problem is I can
not figure out to qualify on #Delete....I can not use: Is Not Null, that
would bring in other records I do not want......I am guessing the powers
that be are tagging deleted records and holding onto them.....again out of
my control...EVER RUN INTO THIS, IS THERE A WAY TO ELIMINATE THOSE RECORDS
TAGGED AS DELETED?