H
harleyken
I would like to show a label (no record found) if the search shows no results..
here is the code:
Private Sub Text84_GotFocus()
Me.CheckRecordCount
End Sub
_____________________________________
Public Sub CheckRecordCount()
If Me.Recordset.RecordCount > 0 Then
Me.no_record_label
Else
Me.show_record_label
End If
End Sub
____________________________________
Public Sub no_record_label()
Me.Label83.Visible = True
Me.Text9.SetFocus
End Sub
_____________________________________
Public Sub show_record_label()
Me.Label83.Visible = False
End Sub
here is the code:
Private Sub Text84_GotFocus()
Me.CheckRecordCount
End Sub
_____________________________________
Public Sub CheckRecordCount()
If Me.Recordset.RecordCount > 0 Then
Me.no_record_label
Else
Me.show_record_label
End If
End Sub
____________________________________
Public Sub no_record_label()
Me.Label83.Visible = True
Me.Text9.SetFocus
End Sub
_____________________________________
Public Sub show_record_label()
Me.Label83.Visible = False
End Sub