I use Access to run reports from various pieces of financial data. The
one query that I have been unable to produce, but need is the following:
A query that yields all accounts from a person that has a loan account
with us but no deposit account. Luckily, all loan information is kept
in a 'loan' table and deposit is kept in a 'deposit' table with a few
common fields such as account number.
What I tried doing was to pull 'account number' from 'loan' and
'deposit' tables and use NULL for deposit info. and IS NOT NULL for loan
info so that records with valid Loan info. that was without deposit info
would be pulled.
This yielded results, but not the type that I was looking for because
John Doe, for instance, can have 5 accounts and if only one of those
accounts satisfies this critera, then John Doe's name will be pulled.
This query can only be useful if ALL of the records associated with John
Doe fall under this criteria otherwise one record will and one record
won't and his name will be displayed when it shouldn't.
Have I thoroughly confused everyone? I know this doesn't make much
sense, but if anyone can point me in the right direction, I'd be a
happy man.
Thanks
--
Posted via
http://dbforums.com