Access VisualBasic Script

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