Hi, I thought this would be easy as I have done where clauses before but for some reason it's not working.
I have 3 tables. A Query gathers data from each table. I have a 4th table (tblTest) that has two columns. TID and TCode. I want to have it so when I run my query, that it will not return results where (ie: mcode.mCode = tblTest.TCode AND mid.mid = tblTest.Tid)
Right now, I have this as my query:
I have 3 tables. A Query gathers data from each table. I have a 4th table (tblTest) that has two columns. TID and TCode. I want to have it so when I run my query, that it will not return results where (ie: mcode.mCode = tblTest.TCode AND mid.mid = tblTest.Tid)
Right now, I have this as my query:
Code:
SELECT
MIDs.MID, MCodes.MCode, MCodes.MaintDesc, MCodes.ICycle, MRecord.TimeLogged, MRecord.CumCycle, MIDs.LastUpdt, MRecord.SelInterval, MRecord.ICycle, MRecord.MNo, MCodes.SelInterval
FROM
MIDs, MRecord, MCodes
WHERE
(((MIDs.MNo)=[MRecord].[MNo])
AND
((MRecord.MCNo)=[MCodes].[MCNo]
AND
(MRecord.MCNo)>0))
ORDER BY
MIDs.MID, MCodes.MCode;