C
CJ
Hi Groupies:
I would like my form to check the warranty status of my equipment. If the
warranty expiry date is less than today and the warranty field is still
checked, I would like the warranty field to uncheck and a message box to pop
up.
I have the following code in the OnCurrent event of my form:
Dim MyDate
MyDate = Date
If (Me.dtmWarrantyExpiry < MyDate) And (Me.ysnWarranty = True) Then
Me.ysnWarranty = False
MsgBox "Warranty has expired for this item", vbOKOnly, "No Warranty"
Me.SKU_Number.SetFocus
End If
Although I do not get any error messages, nothing happens at all between
records.
Any ideas?
I would like my form to check the warranty status of my equipment. If the
warranty expiry date is less than today and the warranty field is still
checked, I would like the warranty field to uncheck and a message box to pop
up.
I have the following code in the OnCurrent event of my form:
Dim MyDate
MyDate = Date
If (Me.dtmWarrantyExpiry < MyDate) And (Me.ysnWarranty = True) Then
Me.ysnWarranty = False
MsgBox "Warranty has expired for this item", vbOKOnly, "No Warranty"
Me.SKU_Number.SetFocus
End If
Although I do not get any error messages, nothing happens at all between
records.
Any ideas?