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.
Set fs=CreateObject("Scripting.FileSystemObject")
Set f=fs.CreateTextFile ("c:\docs\Report.html", False)
'Header
f.WriteLine "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN>" & vbCrLf _
& "<HTML>" & vbCrLf _
& "<HEAD>" & vbCrLf _
& "<TITLE>Report</TITLE>" & vbCrLf _
& "</HEAD>" & vbCrLf _
& "<BODY><H1>The Report</H1>"
& "<Table>"
'Recordset
Set rs = CurrentDB.OpenRecordSet("Select af, bf, cf From tblTable")
'Build table
Do While Not rs.EOF
f.WriteLine "<TR>"
f.WriteLine "<TD>" & rs!af & "</TD>"
f.WriteLine "<TD>" & rs!bf & "</TD>"
f.WriteLine "<TD>" & rs!cf & "</TD>"
f.WriteLine "<TR>"
rs.MoveNext
Loop
rs.Close
'End of HTML
f.WriteLine "</TABLE></BODY></HTML>"
f.close
'View file
FollowHyperLink "c:\docs\Report.html"