How to get started with VBA to Import a Text.txt file

J

Jen

The file is located in the C:\ drive. C:\Text.txt
I need to create a button to call a procedure to import a text file.
Please point me in the right direction to get started....

I know how to create buttons to call macros and/or procedures ...
I need help on getting started in VBA - OPENFILE C:\Text.txt ????

Thanks.
 
A

Arvin Meyer [MVP]

Try something like:

DoCmd.TransferText acImportDelim, , "MyTable", "C:\Text.txt", True

use False if the first row doesn't have fieldnames
 
J

John W. Vinson

is this possible to apply animation in the web page

Neeraj, rather than asking your question about webpages as a response to
someone else's totally unrelated question about Microsoft Access, please use a
forum supporting your web editor software and ask a new question.
 
J

Jen

Not trying to make things more difficult, but can I import .txt data without
using 'TransferText'?
 

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