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 conn As Connection
Dim rst As Recordset
On Error GoTo ErrHndl:
Set conn = New Connection
conn.Open "Provider=SQLOLEDB;Password=YourPassW;Persist Security Info=False;User ID=YourID;Initial Catalog=YourDB;Data Source=YourSQLServer"
Set rst = New Recordset
rst.Open "SELECT * FROM tblCrap", conn, adOpenStatic, adLockOptimistic
rst.Close
Set rst = Nothing
conn.Close
Set conn = Nothing
Exit Sub
ErrHndl:
Dim MyErr As ADODB.Error
For Each MyErr In conn.Errors
MsgBox "Error Number: " & MyErr.Number & vbCrLf & _
"Description: " & MyErr.Description & vbCrLf & _
"Source: " & MyErr.Source & vbCrLf & _
"SQL State: " & MyErr.SQLState & vbCrLf & _
"Native Error: " & MyErr.NativeError
Next MyErr
-----------------------------------------------------