Morning
I have a label in a form with the 'visible' property set to 'No', I am trying to display the label when the query returns no results & the form is blank. The code I am using is as follows;
Private Sub Form_Open(Cancel As Integer)
Dim rs As Object
Set rs = Me.RecordsetClone
If rs.RecordCount = 0 Then
ApptMemo.Visible = False
lblNa.Visible = True
End If
Set rs = Nothing
End Sub
If I set the 'RecordCount < 2', the form displays the label as required, but I need it to display at '0' or '< 1', is this possible.
Many Thanks
Freddy
I have a label in a form with the 'visible' property set to 'No', I am trying to display the label when the query returns no results & the form is blank. The code I am using is as follows;
Private Sub Form_Open(Cancel As Integer)
Dim rs As Object
Set rs = Me.RecordsetClone
If rs.RecordCount = 0 Then
ApptMemo.Visible = False
lblNa.Visible = True
End If
Set rs = Nothing
End Sub
If I set the 'RecordCount < 2', the form displays the label as required, but I need it to display at '0' or '< 1', is this possible.
Many Thanks
Freddy