I have a Date text box(Branch_Warranty_Exp) and txtBoxMessage. The Date text box shows dd/mm/yyyy. I want txtBoxMessage to show different text depnding on the date shown. I have written the code to meet the different conditions.
But i don't know how to get txtBoxMessage to update automactly every time the Date field changes. Below is my condition code.
If (Branch_Warranty_Exp > Date - 9 And Branch_Warranty_Exp < Date - 12) Then txtBoxMessage.SystemOut.printLn (" Warning you have three months of warranty left")
If (Branch_Warranty_Exp < Date - 12) Then txtBoxMessage.SystemOut.printLn ("Out of Warrnty")
If (Branch_Warranty_Exp > Date - 12) Then txtBoxMessage.SystemOut.printLn ("Warranty Still Valid")
This properly very easy but i don't know access very well. So any help you could provide would be greatly appreaicated. Thanks in advance.
But i don't know how to get txtBoxMessage to update automactly every time the Date field changes. Below is my condition code.
If (Branch_Warranty_Exp > Date - 9 And Branch_Warranty_Exp < Date - 12) Then txtBoxMessage.SystemOut.printLn (" Warning you have three months of warranty left")
If (Branch_Warranty_Exp < Date - 12) Then txtBoxMessage.SystemOut.printLn ("Out of Warrnty")
If (Branch_Warranty_Exp > Date - 12) Then txtBoxMessage.SystemOut.printLn ("Warranty Still Valid")
This properly very easy but i don't know access very well. So any help you could provide would be greatly appreaicated. Thanks in advance.