I want the YRID field to be updated to the current year Year(Date) if the field is blank. If the field has been filled in with let's say next year's date, then I want it to be unchanged.
My formula is as follows:
[tt]Private Sub VehicleID_Exit(Cancel As Integer)
If Forms!ORPInsForm!YrID > 1 Then YrID
Else: YrID = Year(Date)
End Sub[/tt]
The error message reads:
Invalid use of property
It appears as thought the YRID field property needs to be changed. Currently it's data type is a NUMBER the format is FIXED and decimal places set a O. Any suggestions to make this work?
Thanks, Bill
My formula is as follows:
[tt]Private Sub VehicleID_Exit(Cancel As Integer)
If Forms!ORPInsForm!YrID > 1 Then YrID
Else: YrID = Year(Date)
End Sub[/tt]
The error message reads:
Invalid use of property
It appears as thought the YRID field property needs to be changed. Currently it's data type is a NUMBER the format is FIXED and decimal places set a O. Any suggestions to make this work?
Thanks, Bill