Hi,
I am very new to Access still, and have a query to return values from multiple tables. In this case I want to return all users which have ANY of the following data in any of the following fields (DN, TN, Phantom, DID). This only works when the users has ALL the above fields. If any are null nothing shows up. Is there a way around this?
I am not too familiar with SQL code and pretty much rely on using the designer, but here is the code that it created if anyone can help!
I am very new to Access still, and have a query to return values from multiple tables. In this case I want to return all users which have ANY of the following data in any of the following fields (DN, TN, Phantom, DID). This only works when the users has ALL the above fields. If any are null nothing shows up. Is there a way around this?
I am not too familiar with SQL code and pretty much rely on using the designer, but here is the code that it created if anyone can help!
Code:
SELECT tblDID.DID, tblDN.DN, tblPhoneLog.PhoneLogID, tblTN.TN, TblUsers.FirstName, TblUsers.LastName, tblPhantom.Phantom
FROM TblUsers INNER JOIN (tblTN INNER JOIN (tblPhantom INNER JOIN (tblDN INNER JOIN (tblDID INNER JOIN tblPhoneLog ON tblDID.DIDid = tblPhoneLog.DIDID) ON tblDN.DNid = tblPhoneLog.DNID) ON tblPhantom.Phantomid = tblPhoneLog.Phantomid) ON tblTN.TNid = tblPhoneLog.TNID) ON TblUsers.UserID = tblPhoneLog.UserID));