Private Sub Form_Current()
If Me.[COLOR=Red]InitialWarranty [/COLOR]<= Me.[COLOR=Red]ExtendedWarranty [/COLOR]Then
Me.[COLOR=Blue]yourNewTextBox [/COLOR]= Me.ExtendedWarranty
ElseIf Me.[COLOR=Red]InitialWarranty [/COLOR]> Me.[COLOR=Red]ExtendedWarranty[/COLOR]
Me.[COLOR=Blue]yourNewTextBox [/COLOR]= Me.InitialWarranty
Else
Me.[COLOR=Blue]yourNewTextBox [/COLOR]= "No Warranty"
End If
End Sub
If you are not sure how to use the Form current code.. Try http://www.baldyweb.com/FirstVBA.htmthen use the Form Current method to set this value.
...I have a "InitialWarranty" record and "ExtendedWarranty"; they are both Date records...