Hi there, I'm trying to make a form which calculates the annual depreciation value of a property. I have tried using the PrevRecVal function and I even made the following query:
SELECT Last(PropertyDepreciation.[Total]) FROM PropertyDepreciation WHERE (((PropertyDepreciation.PropertyID)=(Forms!PropertyDepreciationSF!PropertyID)) And ((PropertyDepreciation.PDID)=((Forms!PropertyDepreciationSF!PDID)-1)));
But still no luck. I made a text field called PreviousTotalValue to see what sort of information was being returned by the query and PrevRecVal and for both, #Name? is returned.
Any ideas fellas?
Bob
SELECT Last(PropertyDepreciation.[Total]) FROM PropertyDepreciation WHERE (((PropertyDepreciation.PropertyID)=(Forms!PropertyDepreciationSF!PropertyID)) And ((PropertyDepreciation.PDID)=((Forms!PropertyDepreciationSF!PDID)-1)));
But still no luck. I made a text field called PreviousTotalValue to see what sort of information was being returned by the query and PrevRecVal and for both, #Name? is returned.
Any ideas fellas?
Bob