What I am trying to do is create cyclical preventive maintenance service
records in my database. The cycles are weekly, monthly, quarterly, tri-
annually, semiannually, and annually. There are several reasons I felt
that
making a table that contained a unit field and 52 work week fields then
querying off it to append the service record table would be the simplest
and
best way to go.
1.I want to be able to enter new units, and in a short period of time be
able
to schedule their maintenance intervals. The types of inspections vary
from
unit to unit; also the man hours required to complete them varies.
2.I want to be able to control the work per week so that I don't end up
with
80 hours of work scheduled for one week and 20 hours of work scheduled for
another.
3.I only want to generate a record if an inspection is due and then I only
want a record for that type of inspection.
4.I want to be able to query the table to convert the inspection types
into
man-hours so that I can graph the weekly work load and maintain the annual
balance by staggering the cycles of newly entered units.
5.I want the schedule "set in stone" I do not want any migration of the
cycle
do to calculated next due dates.
So here's what I've done. I created a table called PM Schedule. It has one
unit field and
52 work week fields.
UNITNUMBER WW41 WW42 WW43 WW44
TC1 WK WK QRT WK
JETWAY1 WK SEMI WK WK
OB4 MTH WK WK WK
This allows me to quickly enter new units as my contract expands and
control
the annual cycle to place the man-hours at the most efficient intervals.
This
balances my weekly work load and it doesn't migrate over any period of
time.
It also eliminates the need for numerous calculations on date/ time. I
don't
have to worry that 52 doesn't divide well by 3 or that every third monthly
cycle is five weeks long. I also don't have to worry about generating a
weekly ,monthly, quarterly, and Semiannual work order for say Jetway1 in
WW42
in the example, when all I need is the Semi. What I NEED is a Simple way
to
query this table so that the query will show the unit number field values
and
only the work week field values for the work week field that is equal to
the
current work week. I don't think this should be too hard but I'm not as
good
at code as I wish I was.
Amy said:
Why don't you describe more in detail what you need the system to do? You
might want to move this discussion to the tabledesign newsgroup.
HTH;
Amy
Amy
I have already created a seperate table that has a record for each work
[quoted text clipped - 21 lines]