I am trying to assign a value returned from a SQL command in visual studio to a variable. 
This will then allow me to have a tiered login system.

My current code is:`

```
Imports System.Data.SqlClient
Imports System.Data.OleDb

Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles cmdLogin.Click
    Dim Con As SqlConnection
    Dim cmd As New OleDbCommand
    Dim sqlstring As String
    Dim connstring As String
    Dim ds As DataSet
    Dim da As SqlDataAdapter
    Dim inc As Integer = 0
    Dim userlevel As Integer

    connstring = "Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Assignment.mdf;Integrated Security=True;Connect Timeout=30"

    Con = New SqlConnection(connstring)
    Con.Open()

    sqlstring = ("SELECT level FROM Users WHERE Id='" & _txtUsername.Text & "' and pass='" & _txtPassword.Text & "'")
    da = New SqlDataAdapter(sqlstring, Con)
    ds = New DataSet
    da.Fill(ds, "Users")

    If ds.Tables(0).Rows.Count > 0 Then
        MsgBox("Username Correct. Welcome!")
    Else
        MsgBox("Hackers are not welcome! Shoooo")
    End If

End Sub

```

This works. However I am unsure on how to assign the level to a visual basic variable. Any help greatfully received.