How to find out if there is no data in the table in VB.NET

You can use ExecuteScaler method of Command object and compare if result is null.
  • 1342

You can use ExecuteScaler method of Command object and compare if result is null. For example:

Private res As Object = cmmTest.ExecuteScalar()
If res Is Nothing Then
End
If

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.