This is what is happening. In the customer table there
are 8 different categories of various accounts. For our
reporting purposes we don't care about the differences and
need to run certain processes on these numbers. I have to
basically streamline the current database and I am trying
to eliminate as much extra work as possible. Right now
there are 8 different queries, 1 that makes a table and
the rest to append all of the different accounts to this
one table. I was trying to make it work with one query
but that is where I was hitting a wall. When I try to
combine them all, I only get instances where they match
across, which doesn't happen. I tried changes the AND to
an OR and it just crashes the query. I can't go back and
make changes to the main system because it is a custom
application that was designed by one of our vendors. I
import their tables and am sort of handcuffed by their
initial design. This is a sample of what I am trying to
do -
INSERT INTO [OD Case#] ( Account, CaseID )
SELECT Overdrafts.Account, tblCase.CASEID
FROM tblCase INNER JOIN Overdrafts ON (Overdrafts.Account
= tblCase.CUSTOMERACCOUNTNUMBER2) OR
(tblCase.CUSTOMERACCOUNTNUMBER1 = Overdrafts.Account);
It will run if I change the OR to an AND, but again the
results are wrong.