Stored Import Specs?

G

Guest

I've created a standard specification for importing this CSV file. The
problem is, I don't want my end users to have to click Import, etc. to get
this file into a table. Is it possible to automatically call this
specification from within Access, say a button on a form? If so, where is
the specification stored?
 
F

fredg

I've created a standard specification for importing this CSV file. The
problem is, I don't want my end users to have to click Import, etc. to get
this file into a table. Is it possible to automatically call this
specification from within Access, say a button on a form? If so, where is
the specification stored?

If you have already created the import specification (and have named
it), your user doesn't need to 'get into it' to import the file in the
future.
Look up the TransferText method in VBA help.
The 2nd argument is the import spec name.

In the Click event of a command button:

DoCmd.TransferText acImportDelim, "SpecName", "TableName", "c:\my
folder\FileName.txt"
 
G

Guest

Thank you Fred - that's exactly what I needed!


fredg said:
If you have already created the import specification (and have named
it), your user doesn't need to 'get into it' to import the file in the
future.
Look up the TransferText method in VBA help.
The 2nd argument is the import spec name.

In the Click event of a command button:

DoCmd.TransferText acImportDelim, "SpecName", "TableName", "c:\my
folder\FileName.txt"
 

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