PC Review


Reply
Thread Tools Rate Thread

Applying file structure/format to updated txt file

 
 
=?Utf-8?B?SmFtZXMgUXVpZ2xleQ==?=
Guest
Posts: n/a
 
      28th May 2007
Every three months I receive an update to a database in a txt file format. I
have to go and set up the file structure or format everytime I want to use
the new txt file. The file structure / format never changes. Is there a way
to apply a standardized file structure / format to the txt file when I
receive it?
 
Reply With Quote
 
 
 
 
Phil Hellmuth
Guest
Posts: n/a
 
      28th May 2007
James Quigley wrote:
> Every three months I receive an update to a database in a txt file format. I
> have to go and set up the file structure or format everytime I want to use
> the new txt file. The file structure / format never changes. Is there a way
> to apply a standardized file structure / format to the txt file when I
> receive it?

If I'm reading this correctly, you could create a table with the proper
column definitions, then programatically import the file into the table.
 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      28th May 2007
On Mon, 28 May 2007 11:23:00 -0700, James Quigley
<(E-Mail Removed)> wrote:

>Every three months I receive an update to a database in a txt file format. I
>have to go and set up the file structure or format everytime I want to use
>the new txt file. The file structure / format never changes. Is there a way
>to apply a standardized file structure / format to the txt file when I
>receive it?


Yes, there is!

Use File... Get External Data... Import, and go through the column name and
datatype settings as usual. Then click the "Advanced" button on the menu.

You'll get the option to save the import specifications and reuse them later.
If you wish to automate the import process in VBA, you can use the saved
specification in conjunction with the TransferText method - see the online
help, or post back for more.

John W. Vinson [MVP]
 
Reply With Quote
 
Tom Wickerqueer
Guest
Posts: n/a
 
      25th Jun 2007
bull ****


it is not reccomended to use Access for importing data like this; it is
reccomended that you get a copy of SQL Server developers edition and learn
DTS


"John W. Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news:(E-Mail Removed)...
> On Mon, 28 May 2007 11:23:00 -0700, James Quigley
> <(E-Mail Removed)> wrote:
>
>>Every three months I receive an update to a database in a txt file format.
>>I
>>have to go and set up the file structure or format everytime I want to use
>>the new txt file. The file structure / format never changes. Is there a
>>way
>>to apply a standardized file structure / format to the txt file when I
>>receive it?

>
> Yes, there is!
>
> Use File... Get External Data... Import, and go through the column name
> and
> datatype settings as usual. Then click the "Advanced" button on the menu.
>
> You'll get the option to save the import specifications and reuse them
> later.
> If you wish to automate the import process in VBA, you can use the saved
> specification in conjunction with the TransferText method - see the online
> help, or post back for more.
>
> John W. Vinson [MVP]


 
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
Is Vista NTFS Format/File Structure Compatible With Previous Versi =?Utf-8?B?Qm9iIEg=?= Windows Vista Installation 3 12th Oct 2006 01:06 AM
MS Word Document File Structure -- Need Published Description of Structure Gray M. Strickland Microsoft Word Document Management 15 9th Nov 2004 06:24 PM
Linking excel worksheet with word file and I don't want the format changes to transfer to the owrd document only want the text changes to be updated =?Utf-8?B?RGF3bg==?= Microsoft Word Document Management 1 24th Apr 2004 08:02 AM
MDB File Format Structure HaniviC Microsoft Access 3 15th Sep 2003 01:04 AM
BIG problem with NOT saving an updated file and needing that UPDATED file again. Al Microsoft Excel Misc 1 26th Aug 2003 01:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:16 PM.