SELECT
a.cid, a.name, nz(a.amt,0) AS New1, nz(b.amt2,0) AS New2
FROM lrt1 AS a LEFT JOIN lrt2 AS b
ON a.CID=b.CID;
UNION SELECT
b.cid, b.name, nz([a].[amt],0) AS New1,
nz(.[amt2],0) AS New2
FROM lrt2 AS b LEFT JOIN lrt1 AS a
ON b.CID = a.CID;
Terry,
This code is in a VB command button, and is basically what you replied to me earlier. When I click it it runs but I get no output or indication that anything happened. It runs just fine in ACCESS and shows me the results just like it should be, so it works correctly. This is using a small test set and the final table will have some more fields in it. I am new to ACCESS and VB so I may be asking a basic questioin and appreciate your help. If you need anythiong else let me know.
Thanks
Les