Hi:
I have a button that would run a query based on criteria placed into the form. The results would output into a listbox. Now If the criteria goes through and brings up only the headings on the listbox I need a msgbox to pop up and say there are no records that much your criteria. How can I do this. I tried:
If isNull (Me.lstAccount.Rowsource) Then
msgbox "There are no records that match your account No. " & Me.txtAccount & "", vbInformation
Exit Sub
End If
It doesn't work. Please Help.
Thanks
Zishan
I have a button that would run a query based on criteria placed into the form. The results would output into a listbox. Now If the criteria goes through and brings up only the headings on the listbox I need a msgbox to pop up and say there are no records that much your criteria. How can I do this. I tried:
If isNull (Me.lstAccount.Rowsource) Then
msgbox "There are no records that match your account No. " & Me.txtAccount & "", vbInformation
Exit Sub
End If
It doesn't work. Please Help.
Thanks
Zishan