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,
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