Display Msgbox if no records returned from select statement in VB.NET

K

Ky_fanatic

I am working on an application which returns data from multiple
databases. The user enters a pallet ticket and it goes out to the
multiple db's and returns data which meets the criteria. My
application returns data when the user inputs a valid ticket number.
If no records are returned it shows a blank data grid. Instead of the
user seeing this blank datagrid I want to display a msgbox alerting
the user no records were found with the criteria they passed. What is
the best way to accomplish this? Thanks in advance for your help.
 
W

WorkingHard

If the returned recordset does not contain data display a msgbox - not much
best ways there - you could also "hide" the blank datagrid by setting it to
invisible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top