A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Import txt file macro



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2010, 03:08 PM posted to microsoft.public.access
access2007_newbie
external usenet poster
 
Posts: 1
Default Import txt file macro

Hello,

I am currently using a transfer text macro to import a text file. This works
great if the name of the text file is always the same. Is there a similar
marco (or any other suggestion) that will allow me to choose the text file to
be imported? This text files always contain the same information, just
different names. I am currently using Access 2007.

Thanks for all your help.
Kevin
  #2  
Old May 18th, 2010, 03:25 PM posted to microsoft.public.access
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Import txt file macro

On Tue, 18 May 2010 07:08:01 -0700, access2007_newbie
wrote:

You'll have to use some VBA code. The typical scenario is where you
respond to an "Import Text Bile" button click by opening a file/open
dialog (see http://www.mvps.org/access/api/api0001.htm) and take the
return value (the file to be opened) and pass it to
DoCmd.TransferText.

-Tom.
Microsoft Access MVP


Hello,

I am currently using a transfer text macro to import a text file. This works
great if the name of the text file is always the same. Is there a similar
marco (or any other suggestion) that will allow me to choose the text file to
be imported? This text files always contain the same information, just
different names. I am currently using Access 2007.

Thanks for all your help.
Kevin

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.