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.
On Error Resume Next
Dim dbs As Database
Dim strSQL As String
Dim strQueryName As String
Dim qryDef As QueryDef
Set dbs = CurrentDb
strQueryName = "BobQuery"
dbs.QueryDefs.Delete strQueryName
strSQL = "SELECT BobTable.BobMonth, BobTable.BobBucks FROM BobTable " _
& "WHERE BobTable.BobMonth LIKE '" & strMonth & "';"
Set qrydef = dbs.CreateQueryDef(strQueryName, strSQL)
Docmd.OpenReport "BobReport", acViewPreview