I have a form "Maintenance Completed", where there is a text box to enter the engine hours when the maintenance was completed. The users select an engine, a component, enter engine hours and a date.The users are entering the hours in manually but I am trying to write a code for an "estimate" button. The button would "grab" the engine hours from TblHourEntry based on the EngineID selected in the form. Then it would use the date entered into the form in the following equation:
((Date/30)*AvgMonthlyHours (from a query based on engineID)) + MaxofEngineHours(from TblHourEntry based on engineID)
The user can then, either choose to go with the estimated value or go get actual readings and compare them to the estimated to verify accuracy of the estimate.