Testing a DataSet for Null values

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I am using a Visual Basic parametized query to locate a
record in a SQL Server per the following code:

daRER.SelectCommand.Parameters("@My_RER").Value = My_RER
daRER.Fill(dsRER)

How would I test the dataset to ensure that a Null record
was not delieved to the dsRER DataSet. @My_RER is
connected to the PrimaryKey of a SQL Table. This test
will determine if a message box will be displayed to the
user to enter another RER Number.

Thanks
 
Excellent alternative, Teemu. Thanks!

Steven Bras, MCSD
Microsoft Developer Support/Visual Basic WebData

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
 
Back
Top