Open a Text File

D

Dirk Goldgar

Nigel Bennett said:
How would I open a text file from within Access

That would depend on what you mean by "open":

+ You can use standard VB file I/O statements Open, Input or Line Input,
and Close to open, read, and close the file in a VBA procedure.

+ You can use the DoCmd.TransferText method to import or link to a text
file as a table.

+ You can use Application.FollowHyperlink (or call the ShellExecute API)
to cause the application associated with text files to open and display
the file in its own window.
 

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

Top