Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Modules & VBA

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-21-2007, 10:48 PM
ymeyaw ymeyaw is offline
Registered User
 
Join Date: Feb 2007
Posts: 1
ymeyaw is on a distinguished road
import text into tables

Dear all,
i had a very messy txt files and i would like that to populate into table. I know very mimimum bout transfertext. So, is there any one can guide me or any example coding that i can refer to? Thanks in advance as i had been scratching my head for the past few weeks to manipulate my company employees profile (more than 500 records) in a very manual way.


Here's one of my txt file, say 1.txt

==========================
david profile
==========================
age 28
sex male
address 28 washinton road 20056
==========================
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxx@#$@#%#$^$
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
==========================
cindy profile
==========================
age 23
sex female
address 7 26 washinton road 20056
==========================
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxx&*^&*%^%^##$%%&
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@##$^^%

The table which i wish to have in access is:

profile age sex address
david 28 male 28 washinton road 20056
cindy 23 female 26 washinton road 20056
(continue with remaining txt files in one table)
Reply With Quote
Sponsored Links
  #2  
Old 02-22-2007, 01:19 AM
namliam namliam is offline
The Mailman - AWF VIP
 
Join Date: Aug 2003
Location: Amsterdam/The Netherlands
Posts: 7,139
namliam is a jewel in the roughnamliam is a jewel in the roughnamliam is a jewel in the roughnamliam is a jewel in the rough
Try looking up the Open statement in VBA and reading up on "Line Input" and stuff like that...

You can use that to manipulate your import the way you want to...

Greets
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Data into Related Tables? spacepro General 8 06-02-2009 11:47 AM
Import multiple rows of text into one field thedragonman Modules & VBA 7 08-07-2005 08:33 AM
Import Tables that have relationships goldenorb82 Tables 4 10-14-2004 09:46 PM
Import Specific Text Grandchester Queries 2 01-11-2002 05:01 PM


All times are GMT -8. The time now is 07:48 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World