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.
'References Microsoft DAO x.x Object Library
Dim rs As DAO.Recordset
Dim db As database
Set db = CurrentDb
Set rs=db.OpenRecordset("xtabQueryNameHere")
For i=0 To rs.Fields.Count-1
strSQL=",[" & rs.Fields(i).Name & "]"
Next
'Check if SD field exists
If Instr(strSQL,"[SD]")=0 Then
strSQL=",'' As [SD]" & strSQL
End If
strSQL="SELECT " & mid(strSQL,2) & " FROM xtabQueryNameHere"
db.CreateQueryDef("ANewQueryName", strSQL)