OK here is my code:
Im using the code to create an aging report for orders. the code tells me if the order shipped > 90, 61-90, 31-60, or >31 days ago but what if the order has not shipped. In that case that field would be blank and would cause an error. How do I handle empty date fields?
Code:
Select Case DateDiff("D", Shipdt, Date)
Case Is > 90
WTAge = "GT-90"
Case Is > 60
WTAge = "61-90"
Case Is > 30
WTAge = "31-60"
Case Is < 31
WTAge = "LT-31"
End Select
Comment