I cannot understand why I get the error message “invalid uses of Null” in this procedure at the first line beginning “IF Left(Me…”. It worked fine when I first tested it and now it does not.
The intention is to test for a 12/25 or 7/4 (any year) date and if true make a button on the form visible.
Private Sub Combo17_AfterUpdate()
‘ Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst “[ASSET_NUMBER] = ‘” & Me![Combo17] & “‘”
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
If Left(Me.INSPECT_DATE, Len(Me.INSPECT_DATE) – 5) = “07/04” Then
Me.cmd_ARC1.Visible = True
End If
If Left(Me.APPRAISE_DATE, Len(Me.APPRAISE_DATE) – 5) = “12/25” Then
Me.cmd_ARC2.Visible = True
End If
End Sub