My problem now is about how to use "not equal" in SQL. Here is my code:
Dim cmd As New SqlClient.SqlCommand
With cmd
.CommandText = "SELECT [Position],[Partylist],[Fullname],[Lvl],[Votes] FROM tbl_cands WHERE [Department] = '" & elem & "'AND [PositionID]=" & pres & ""
.CommandType = CommandType.Text
.CommandTimeout = 30
.Connection = conn
End With
Dim dt As New DataTable
dt.Load(cmd.ExecuteReader)
I need not to display fullname that is not equivalent to None.