Access VisualBasic Script

Public Sub ExportTable()
   DoCmd.OutputTo acOutputTable, "tblCustomer", acFormatHTML, _
                  "C:\BegVBA\Customer.html"
End Sub