Now have it working.
I created a query that shows the record from the previous year
(datMonth=DateAdd("m",-12,[forms]![frmKioskValues].[datMonth])
VBA opens the form based on the query.
I then use dblLastYearFTEPaidOut = Forms!frmCalculateKioskPercentages.dblEffectivePai dFTE.Value
Close the form.
Then calculate the percentage difference. dblPercentageFTEPaidOut = (dblEffectivePaidFTE - dblLastYearFTEPaidOut) / dblEffectivePaidFTE
Glen
Last edited by wobmat; July 23rd, 2009 at 04:30 AM..
Reason: Changed method of getting value
|