How to check to for empty fields in a dataset?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a dataset with columns let's say ssn, name. I want to check to make
sure there are no rows with a blank(or null or whatever) ssn in the dataset
before I continue on with my program. What is a quick way to do that? I'm
using vb.net. Thanks.
 
Hi,

You can check for this in your sql query by using the "WHERE SSN IS NOT NULL" clause
or if you want to do this in the dataset by looping through all the items and comparing each ssn
column item with system.dbnull

HTH

Mona[Grapecity]
 

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

Back
Top