G
Guest
Will try not to be long winded. Database tracking parts and receipt of
documentation... Status field in form to display "Red" "Yellow" "Green" based
on time till A-Rev date for the part.
Form Fields in question: [Status] [TargetARev] [ReceiptDate]
Control Source in [Status]:
=IIf(IsNull([SDoCReceiptDate]),"Incomplete" Or
(IIf(([TargetARev]-Date()>30),"Green",IIf([TargetARev]-Date()<0,"Red",IIf([TargetARev]-Date() Between 1 And 29,"Yellow")))),"Completed")
The "Completed" portion is the only thing working. Anything else results in
-1. I can't for the life of me figure out where that is coming from. None
of the fields are currently formatted to date/time. They were initially, but
when I realized that dates could not reflect a null or "" value, I had to
find a work around.
I appreciate any help.
documentation... Status field in form to display "Red" "Yellow" "Green" based
on time till A-Rev date for the part.
Form Fields in question: [Status] [TargetARev] [ReceiptDate]
Control Source in [Status]:
=IIf(IsNull([SDoCReceiptDate]),"Incomplete" Or
(IIf(([TargetARev]-Date()>30),"Green",IIf([TargetARev]-Date()<0,"Red",IIf([TargetARev]-Date() Between 1 And 29,"Yellow")))),"Completed")
The "Completed" portion is the only thing working. Anything else results in
-1. I can't for the life of me figure out where that is coming from. None
of the fields are currently formatted to date/time. They were initially, but
when I realized that dates could not reflect a null or "" value, I had to
find a work around.
I appreciate any help.