Dear Friends,
I am into a situation where I have to calculate Warranty Date and accordingly set the warranty Status in the subform with fields as below,
tblProductDetails
- ProductNameID -Autonumber - PK
- CustomerID - FK (linked to tblcustomerdetails)
- SerialNo
- InvoiceNo
- Invoice Date
- Installation Date
- Warranty End Dt - formula used in form: =IIf(DateAdd("m",6,[Installation Date])>DateAdd("m",8,[Invoice Date]),DateAdd("m",8,[Invoice Date]),DateAdd("m",6,[Installation Date]))
- Warranty Status - formula used in form: =IIf(Date()<=[Warranty End Dt],"IN WARRANTY","OUT OF WARRANTY")
- Remarks
I am having a Problem that if there is no data in [Warranty End Dt] then there should be no status in [warranty status].
I am not expert in expression or coding and somehow by trial and error I managed this formulas. Hence please assist me.
I am into a situation where I have to calculate Warranty Date and accordingly set the warranty Status in the subform with fields as below,
tblProductDetails
- ProductNameID -Autonumber - PK
- CustomerID - FK (linked to tblcustomerdetails)
- SerialNo
- InvoiceNo
- Invoice Date
- Installation Date
- Warranty End Dt - formula used in form: =IIf(DateAdd("m",6,[Installation Date])>DateAdd("m",8,[Invoice Date]),DateAdd("m",8,[Invoice Date]),DateAdd("m",6,[Installation Date]))
- Warranty Status - formula used in form: =IIf(Date()<=[Warranty End Dt],"IN WARRANTY","OUT OF WARRANTY")
- Remarks
I am having a Problem that if there is no data in [Warranty End Dt] then there should be no status in [warranty status].
I am not expert in expression or coding and somehow by trial and error I managed this formulas. Hence please assist me.