Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42215

VS 2008 vb.net 2008 sql reader Yes/ No column

$
0
0
I have a program that reads a SQL Database line by line when the program access's the database it sorts a column of 1(yes)/0(no), decending, i am trying to get it to stop reading whe said column displays a 0(no).
i have tried if reader.read = False then close, however it only gives me half the results that it should, and the statement below is giving me a connot convert string to double i belive is what is said,

Code:

If Convert.ToString(reader("CustMassEmail").ToString) = "0" Or False Then

                                                                       
                                    Exit Do
                                    End If


Viewing all articles
Browse latest Browse all 42215

Trending Articles