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.
Range("A3").Select
With Selection.QueryTable
.Connection = Array(Array( _
"ODBC;DSN=MS Access Database;DBQ=C:\My Documents\vbaProjects\snkPlumbing\snkDatabase.mdb;DefaultDir=C:\My Documents\vbaProjects\snkPl" _
), Array("umbing;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;"))
.CommandText = Array( _
"SELECT tblChangeOrderDetail.JobNbr, tblChangeOrderDetail.Item, tblChangeOrderDetail.ChangeOrderNbr, tblChangeOrderDetail.WorkDescription, tblChangeOrderDetail.Amount" & Chr(13) & "" & Chr(10) & "FROM `C:\My Documents\vbaProjects" _
, _
"\snkPlumbing\snkDatabase`.tblChangeOrderDetail tblChangeOrderDetail" & Chr(13) & "" & Chr(10) & "WHERE (tblChangeOrderDetail.JobNbr=231.0)" _
)
.Refresh BackgroundQuery:=False
End With
"SELECT tblChangeOrderDetail.JobNbr, tblChangeOrderDetail.Item, tblChangeOrderDetail.ChangeOrderNbr, tblChangeOrderDetail.WorkDescription, tblChangeOrderDetail.Amount" & Chr(13) & "" & Chr(10) & "FROM `C:\My Documents\vbaProjects" _
, _
"\snkPlumbing\snkDatabase`.tblChangeOrderDetail tblChangeOrderDetail" & Chr(13) & "" & Chr(10) & "WHERE (tblChangeOrderDetail.JobNbr=" & [B2] & ")" _