B
BlueWolvering
Hello,
I am using Access 2003 with no ability to switch versions.
I have two tables. 1 is the current inventory of Fuel Cards, and the second
is the new inventory of Fuel Cards. I want to find all the NEW Fuel Cards
that exist only in the second table.
SO I have list A and List B. I want to find all the entries in B that are
not in A.
A has a two field Primary key. (Fuel Card # and FuelCard Provider)
B does not have a key but for all intents and purposes, it has the same key
( though it is not defined within access).
Here is the SQL code the wizard gave me.
SELECT ex_FuelCardInput.[Fuel Card Source], ex_FuelCardInput.[Fuel Card
Provider], ex_FuelCardInput.[Fuel Card Number], ex_FuelCardInput.VIN
FROM ex_FuelCardInput LEFT JOIN t_FuelCardInventory ON
ex_FuelCardInput.[Fuel Card Number] = t_FuelCardInventory.FuelCardNo
WHERE (((t_FuelCardInventory.FuelCardNo) Is Null));
The problem is, and this is evident from the design mode, is that this only
is keying on the FuelCardNo. It does not look at the Fuel Card Provider. So
I repeated a FuelCardNo with a different Provider and it returned the Card
(bravo) but showed the repeated number as Null.
FCNo FCPRov FCBlahblah
1 Bob jalskhfa
2 Tom akgjgh
(1) Tom agfhsfgh
the (1) did not display. that cell was blank. But the record was included
in the list.
I tried adding another column with t_FuelCardInventory.FCProvider = Is Null
and that didn't work (DID NOT CHANGE ANYTHING)
I tried making the criteria on FCNo = is null AND
IsNull(t_Fuelcardinventory.fcprovider) and that made the query return ZERO
results.
Thanks!
I am using Access 2003 with no ability to switch versions.
I have two tables. 1 is the current inventory of Fuel Cards, and the second
is the new inventory of Fuel Cards. I want to find all the NEW Fuel Cards
that exist only in the second table.
SO I have list A and List B. I want to find all the entries in B that are
not in A.
A has a two field Primary key. (Fuel Card # and FuelCard Provider)
B does not have a key but for all intents and purposes, it has the same key
( though it is not defined within access).
Here is the SQL code the wizard gave me.
SELECT ex_FuelCardInput.[Fuel Card Source], ex_FuelCardInput.[Fuel Card
Provider], ex_FuelCardInput.[Fuel Card Number], ex_FuelCardInput.VIN
FROM ex_FuelCardInput LEFT JOIN t_FuelCardInventory ON
ex_FuelCardInput.[Fuel Card Number] = t_FuelCardInventory.FuelCardNo
WHERE (((t_FuelCardInventory.FuelCardNo) Is Null));
The problem is, and this is evident from the design mode, is that this only
is keying on the FuelCardNo. It does not look at the Fuel Card Provider. So
I repeated a FuelCardNo with a different Provider and it returned the Card
(bravo) but showed the repeated number as Null.
FCNo FCPRov FCBlahblah
1 Bob jalskhfa
2 Tom akgjgh
(1) Tom agfhsfgh
the (1) did not display. that cell was blank. But the record was included
in the list.
I tried adding another column with t_FuelCardInventory.FCProvider = Is Null
and that didn't work (DID NOT CHANGE ANYTHING)
I tried making the criteria on FCNo = is null AND
IsNull(t_Fuelcardinventory.fcprovider) and that made the query return ZERO
results.
Thanks!