V
vandy
Hi all,
I am attempting to filter out specific records from a tool inventory that
matches a criteria and run a report.
SELECT Toolno, ToolDesc, ModelNo, SerialNo, IIf(NameID Is Null, "Available:
" & Location,
"Out: " & DateTaken & " - " &
Name & "(" & Department &")") AS Status, NameID
FROM tbltoolmaster LEFT JOIN (tbltooltransaction LEFT JOIN tblname ON
tbltooltransaction.NameID =tblname.ID) ON tbltooltransaction.TrantoolID =
tbltoolmaster.ToolID And DateReturned Is Null;
This query gives me the status of every tool.
Toolno ToolDesc ModelNo SerialNo Status NameID
ET-2 Heat Gun 10008 Out: 6/11/2007 - Fred Flintstone(QA)
ET-3 Dielectric Tester AVDv 25VA 4368 Available:
how to display the records only with status out or records where NameID is
not null
can i have a filter were when i choose available displays all records that
are Available and filter out that gives me a list of tools that are out.
thanks for your help.
I am attempting to filter out specific records from a tool inventory that
matches a criteria and run a report.
SELECT Toolno, ToolDesc, ModelNo, SerialNo, IIf(NameID Is Null, "Available:
" & Location,
"Out: " & DateTaken & " - " &
Name & "(" & Department &")") AS Status, NameID
FROM tbltoolmaster LEFT JOIN (tbltooltransaction LEFT JOIN tblname ON
tbltooltransaction.NameID =tblname.ID) ON tbltooltransaction.TrantoolID =
tbltoolmaster.ToolID And DateReturned Is Null;
This query gives me the status of every tool.
Toolno ToolDesc ModelNo SerialNo Status NameID
ET-2 Heat Gun 10008 Out: 6/11/2007 - Fred Flintstone(QA)
ET-3 Dielectric Tester AVDv 25VA 4368 Available:
how to display the records only with status out or records where NameID is
not null
can i have a filter were when i choose available displays all records that
are Available and filter out that gives me a list of tools that are out.
thanks for your help.