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 cnn As New ADODB.Connection
Dim rst As New ADODB.RecordSet
Dim cmd As New ADODB.Command
Dim strConnect As String
strConnect = "Provider=sqloledb;Data Source=server name or IP;Network Library=DBMSSOCN;Initial Catalog=databasename;User ID=username;Password=pwd;App=YourAppname"
cnn.Open strConnect
cmd.CommandText = "select * from mytable"
cmd.ActiveConnection = cnn
cmd.CommandType = adCmdUnknown
Set rst = cmd.Execute
Do While Not rst.EOF
' or do whatever you want with the data in here
Debug.Print rst.Fields(0).Value
rst.MoveNext
Loop
rst.Close
cnn.Close