Automating Text File Export

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi have successfully been able to send excel files by using the code
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97
..To = EmailAddress
.Subject = EmailSubject
.Body = EmailBody
.Attachments.Add (TextFileNameMyFile)
However when I attempt to change to a text file I receive an "unknown file
format" error.
Can anyone point me in the right direction? I am currently running XP
 
PWait said:
Hi have successfully been able to send excel files by using the code
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97
.To = EmailAddress
.Subject = EmailSubject
.Body = EmailBody
.Attachments.Add (TextFileNameMyFile)
However when I attempt to change to a text file I receive an "unknown
file format" error.
Can anyone point me in the right direction? I am currently running
XP

Please post the actual code that is raising the error, and indicate on
which line the error is occurring.
 
Thank you, I have solved the problem.

Dirk Goldgar said:
Please post the actual code that is raising the error, and indicate on
which line the error is occurring.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top