Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim con As New SQLConnection(connectionstring)
Dim com As New SQLCommand("SELECT * FROM myTable", con)
com.CommandType = CommandType.Text
con.Open()
Dim dr As SQLDataReader = com.ExecuteReader
While dr.Read
'Your logic goes here. This is the "loop". Whatever
'you put here will be executed for each record returned
'by the SELECT statement
End While
dr.Close()
com.Dispose()
con.Close()
Dim SelectCmd2 As System.Data.OleDb.OleDbCommand
SelectCmd2 = New System.Data.OleDb.OleDbCommand("Select * from Xnet", dbconnection)
Dim dbreader2 As System.Data.OleDb.OleDbDataReader
dbreader2 = SelectCmd2.ExecuteReader
Do While doneFlag <> 1
Do While LeaveLoop = False
Me.txtXnetAni.Text = dbreader2("ANI")
Me.txtXnetDate.Text = dbreader2("Date")
Me.txtXnetAmount.Text = dbreader2("Xnet Amount")