Calculating Field

Abbosy

Registered User.
Local time
Yesterday, 20:39
Joined
Dec 4, 2013
Messages
59
Good day Forum :)


I have an "ExtendedWarranty" that is calculating ([DateExtendedWarrantyTaken] + [NumberOfYearsExW] * 365)

DateExtendedWarrantyTaken =Date().

This is working fine until "InitialWarranty" exceeds "DateExtendedWarrantyTaken".

I need your help guys to set my extended warranty to work like:

If "InitialWarranty" is > "Today'sDate" then to replace the original calculation with:

[(InitialWarranty] + [NumberOfYearsExW] + 365)

or indeed I'm sure you have better advice to do this. :confused:

Many thanks to you all and best regards


Abbosy
 
Are you trying to Store this value in table? If so then you have to stop doing this.. If in a Query you can do this..
Code:
ExtendedWarranty : IIF([InitialWarranty] > Date(), ([InitialWarranty] + [NumberOfYearsExW] + 365), ([DateExtendedWarrantyTaken] + [NumberOfYearsExW] * 365))
 
Thanks a lot for your help Paul

It's really helped a lot.

Regards
Abbosy
 

Users who are viewing this thread

Back
Top Bottom