B
Belinda
I’d like to say Thank You in advance for anyone who will take this call for
help; I really appreciate what you all do here.
--My dilemma is that I have written queries in ACCESS 2003 to find upcoming
“dueDates†within 30, 45, and 60 days. They all work fine. Now I would like
to further filter these dates to a specific location, (there are currently 4
different buildings in all) to identify equipment that is in need of an
inspection.
What is the easiest and fastest way to do this? (I do not want to have to
make 12+ different queries like 30 day for bldg. A, and a 45 day for bldg. B,
and a 60 day for bldg C…) I also need to print reports for such. I do have
reports but only for the dates, not the specific locations for the dates.
I do not have a lot of experience with ACCESS of VBA, but I’m willing to
learn! I was trying to research how to do this with an option group but I
haven’t been able to wrap my brain around it. Here are SQL statements from my
queries:
Example of 30Day SQL:
SELECT eqDates.ID, location.location, eqDates.equipId,
description.description, make.make, make.model, eqDates.dueDate,
eqDates.daysTilNext, eqDates.notes, eqDates.audit
FROM ((eqDates LEFT JOIN (base LEFT JOIN location ON base.location_ID =
location.ID) ON eqDates.base_ID = base.ID) LEFT JOIN poc ON eqDates.poc_ID =
poc.ID) LEFT JOIN (description LEFT JOIN make ON description.make_ID =
make.ID) ON eqDates.description_ID = description.ID
WHERE (((eqDates.daysTilNext)<=31))
ORDER BY location.location;
Example of Location/bldg. SQL:
SELECT location.location
FROM location
WHERE (((location.location) Like "A*" Or (location.location) Like "DAF*"))
ORDER BY location.location;
The only difference in my other queries are the number of days and bldg.
locations. Thank You!
help; I really appreciate what you all do here.
--My dilemma is that I have written queries in ACCESS 2003 to find upcoming
“dueDates†within 30, 45, and 60 days. They all work fine. Now I would like
to further filter these dates to a specific location, (there are currently 4
different buildings in all) to identify equipment that is in need of an
inspection.
What is the easiest and fastest way to do this? (I do not want to have to
make 12+ different queries like 30 day for bldg. A, and a 45 day for bldg. B,
and a 60 day for bldg C…) I also need to print reports for such. I do have
reports but only for the dates, not the specific locations for the dates.
I do not have a lot of experience with ACCESS of VBA, but I’m willing to
learn! I was trying to research how to do this with an option group but I
haven’t been able to wrap my brain around it. Here are SQL statements from my
queries:
Example of 30Day SQL:
SELECT eqDates.ID, location.location, eqDates.equipId,
description.description, make.make, make.model, eqDates.dueDate,
eqDates.daysTilNext, eqDates.notes, eqDates.audit
FROM ((eqDates LEFT JOIN (base LEFT JOIN location ON base.location_ID =
location.ID) ON eqDates.base_ID = base.ID) LEFT JOIN poc ON eqDates.poc_ID =
poc.ID) LEFT JOIN (description LEFT JOIN make ON description.make_ID =
make.ID) ON eqDates.description_ID = description.ID
WHERE (((eqDates.daysTilNext)<=31))
ORDER BY location.location;
Example of Location/bldg. SQL:
SELECT location.location
FROM location
WHERE (((location.location) Like "A*" Or (location.location) Like "DAF*"))
ORDER BY location.location;
The only difference in my other queries are the number of days and bldg.
locations. Thank You!