Open a Text File

  • Thread starter Thread starter Nigel Bennett
  • Start date Start date
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.
 
Back
Top