PC Review


Reply
Thread Tools Rate Thread

Automation from Flat Text File to Access Database

 
 
Bob
Guest
Posts: n/a
 
      24th Jun 2004
Here is my situation. I have flat text files which appear
to be excel files, but which only contain the .xls
extension and no properties inherent to true excel files.
I need to automate the importation of those files into an
pre-existing access database. I wrote a batch file to
automatically "move" the data.xls to data.txt files. My
question is how can I use a macro or vb code to execute
that batch file, then automatically import all of the
newly created text files (probably around 15 files) into
access. Any help would be greatly appreciated.
 
Reply With Quote
 
 
 
 
Jonathan Parminter
Guest
Posts: n/a
 
      25th Jun 2004

>-----Original Message-----
>Here is my situation. I have flat text files which...
>I need to automate the importation of those files into an
>pre-existing access database. I wrote a batch file to
>automatically "move" the data.xls to data.txt files. My
>question is how can I use a macro or vb code to execute
>that batch file, then automatically import all of the
>newly created text files (probably around 15 files) into
>access. Any help would be greatly appreciated.
>.
>

Hi Bob,
create import specifications using file, get external
data, import. change the file type to txt. The import
wizard is then displayed. Complete each step up to the
last step. Click Advanced. Then click Save to save the
specification with a descriptive name (note the name for
the next step in this process). Finally click finish.
Check that there are no import errors (if 'yes', fix so
that you can rely on your specification).

then use docmd.TransferText method to import. to use
online help, type this method into a module and then, with
the cursor on the text, press F1 key.

Luck
Jonathan
 
Reply With Quote
 
Guest
Posts: n/a
 
      25th Jun 2004
Thank You


>-----Original Message-----
>
>>-----Original Message-----
>>Here is my situation. I have flat text files which...
>>I need to automate the importation of those files into

an
>>pre-existing access database. I wrote a batch file to
>>automatically "move" the data.xls to data.txt files. My
>>question is how can I use a macro or vb code to execute
>>that batch file, then automatically import all of the
>>newly created text files (probably around 15 files) into
>>access. Any help would be greatly appreciated.
>>.
>>

>Hi Bob,
>create import specifications using file, get external
>data, import. change the file type to txt. The import
>wizard is then displayed. Complete each step up to the
>last step. Click Advanced. Then click Save to save the
>specification with a descriptive name (note the name for
>the next step in this process). Finally click finish.
>Check that there are no import errors (if 'yes', fix so
>that you can rely on your specification).
>
>then use docmd.TransferText method to import. to use
>online help, type this method into a module and then,

with
>the cursor on the text, press F1 key.
>
>Luck
>Jonathan
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Flat File Database, Multiple Excel files into one Access Table =?Utf-8?B?bGVhcm5pbmdhY2Nlc3M=?= Microsoft Access External Data 6 8th Jul 2007 06:45 PM
How to read flat file into Access Database? =?Utf-8?B?ZWxlbmE=?= Microsoft C# .NET 1 5th Sep 2006 09:19 PM
Relational database design for flat text file =?Utf-8?B?UmljaA==?= Microsoft Access 1 15th Aug 2005 10:53 PM
Import Flat Text File Via Macro into Access Jim Microsoft Access External Data 4 18th Jun 2004 08:14 PM
Saving form data to a flat file database? Text file? =?Utf-8?B?Sm9yZGFuIEhvd3Nlcg==?= Microsoft Frontpage 4 16th May 2004 04:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:44 PM.