C
Chris Nebinger
Well, if you set the pmLastDate to a Date/Time field, then
it would go easier.
In a query:
NextDueateAdd(PMUnit,PMLastDate)
OR:
NextDueateAdd(PMUnit,PMLastDate + PMLastHours)
Chris Nebinger
function. I have a table with the following fields:
preventative maintenance every 300 hours (operating time,
not chronos time), then I need to add 300 to the
PMLastHours for my next field (NEXTPM). However, if my PM
is based on 3 months, or 90 days, then I need to dateadd
3m or 90d to my PMLastDate.
doesn't like a dim in the middle of an if block. Can
someone help? Thanks in advance.
it would go easier.
In a query:
NextDueateAdd(PMUnit,PMLastDate)
OR:
NextDueateAdd(PMUnit,PMLastDate + PMLastHours)
Chris Nebinger
and Parts Inventory application and am working out a small-----Original Message-----
Good morning,
I've recently started developing a Maintenance Scheduling
function. I have a table with the following fields:
information. If a piece of equipment calls forSysID (text, 2char)
PMLastDate (short date)
PMLastHrs (double)
PMFreq (byte)
PMUnit (text, 10char)
I need to calculate the NEXT PM based on the
preventative maintenance every 300 hours (operating time,
not chronos time), then I need to add 300 to the
PMLastHours for my next field (NEXTPM). However, if my PM
is based on 3 months, or 90 days, then I need to dateadd
3m or 90d to my PMLastDate.
(freqtiming) based on my frequency unit. The compilerThe crux is that I cannot seem to dim my function
doesn't like a dim in the middle of an if block. Can
someone help? Thanks in advance.