Hi Everyone,
I have a form that has several command buttons that when selected act as a filter. The problem I have is if there are no records for the select button I need a way to pop up a message saying No Records Found.
This is how the code looks behind each button:
In reports there is a NO DATA option, however I have not found a similar option for a Form.
Any help will be greatly appreciated.
Thanks,
Dom
I have a form that has several command buttons that when selected act as a filter. The problem I have is if there are no records for the select button I need a way to pop up a message saying No Records Found.
This is how the code looks behind each button:
Code:
Private Sub Labe11_Click()
DoCmd.ApplyFilter "", "[o_recruit] Like ""ALD"""
End Sub
Private Sub Label2_Click()
DoCmd.ApplyFilter "", "[o_recruit] Like ""AM*"""
End Sub
Private Sub Label3_Click()
DoCmd.ApplyFilter "", "[o_recruit] Like ""DRR"""
End Sub
Private Sub Label4_Click()
DoCmd.ApplyFilter "", "[o_recruit] Like ""GMK"""
End Sub
Private Sub Label5_Click()
DoCmd.ApplyFilter "", "[o_recruit] Like ""JLE"""
End Sub
Private Sub Label6_Click()
DoCmd.ApplyFilter "", "[o_recruit] Like ""MDL"""
End Sub
Private Sub Label7_Click()
DoCmd.ApplyFilter "", "[o_recruit] Like ""*"""
End Sub
In reports there is a NO DATA option, however I have not found a similar option for a Form.
Any help will be greatly appreciated.
Thanks,
Dom