A
Aurora
I am using Access 2003
I created a Db for Machine Mtce. The table consists of 3 tables, (1) Basic
Mach Infor (ie Mach#, Mach Name, Mfg etc) - (2) Operations Table - consists
of different prev mtce (PM) that need to be completed at various time frames.
Ex: "Mach 100" could have 3 different operations; Oper # 100A to change the
oil due every 90 days, Oper # 100B to check the belts due every 180 days,
Oper # 100C to grease the machine due every 365 days.
The 3rd table is the "PM History" table which includes the history of all of
the PM's completed with Work Order (WO#) and date completed. All tables are
linked by Mach #.
I am trying to create a report that will look at the latest date a PM was
done (from the pm history table) for a Mach# and by Oper#. Then to that date
add the [freq] from the Operations table to come up with a NextPMDue date.
Ex: Last pm, for Mach 100, Oper 100-B, was completed on 1/5/06 and due again
in 180 days. Therefore the new pm due date would be 7/5/06. I think this
takes the use of the
"max" function and probably the " total" group by function. I am now very
good at using either of these functions.
Is there anyplace on the internet that could help explain to me how to
accomplish this or to use these functions. I do not know how to write SQL or
VBasic. I would appreciate any help you can give me.
aurora
I created a Db for Machine Mtce. The table consists of 3 tables, (1) Basic
Mach Infor (ie Mach#, Mach Name, Mfg etc) - (2) Operations Table - consists
of different prev mtce (PM) that need to be completed at various time frames.
Ex: "Mach 100" could have 3 different operations; Oper # 100A to change the
oil due every 90 days, Oper # 100B to check the belts due every 180 days,
Oper # 100C to grease the machine due every 365 days.
The 3rd table is the "PM History" table which includes the history of all of
the PM's completed with Work Order (WO#) and date completed. All tables are
linked by Mach #.
I am trying to create a report that will look at the latest date a PM was
done (from the pm history table) for a Mach# and by Oper#. Then to that date
add the [freq] from the Operations table to come up with a NextPMDue date.
Ex: Last pm, for Mach 100, Oper 100-B, was completed on 1/5/06 and due again
in 180 days. Therefore the new pm due date would be 7/5/06. I think this
takes the use of the
"max" function and probably the " total" group by function. I am now very
good at using either of these functions.
Is there anyplace on the internet that could help explain to me how to
accomplish this or to use these functions. I do not know how to write SQL or
VBasic. I would appreciate any help you can give me.
aurora