Dim con As New SqlConnection(ConnectString()) Dim cd As New SqlCommand Dim lrd As SqlDataReader Try con.Open() cd.Connection = con cd.CommandText = "SELECT count(ornumber) as co FROM BlueRoomTransactions" lrd = cd.ExecuteReader() While lrd.Read() ornum = Convert.ToString(lrd("co")) End While Catch ex As Exception Finally con.Close() End Try ornum = ornum + 1
Dim iChar As Integer For iChar = Asc("a") To Asc("z") MsgBox(Chr(iChar)) Next iChar
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)