Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / September 2004

Tip: Looking for answers? Try searching our database.

importing text file to access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mary - 30 Sep 2004 05:22 GMT
I am working on some text files   that I will need to
import to access. However, before I can transfer the data
I will need to filter or clean up the data to leave only
information that I need. In the past, I was able to use
excel to clean up the information and record a macro that
does the cleaning process. I think I need to create a  vb
script but have no idea how. This is how the text data
looks like with some other garbage like "/", "pas","-----
": Anyone that does scheduling, this is the adherence
report from IEX. I already have a module that imports the
text but it does not clean up the text. It just collects
the text file and load it to a text box with it path.
Data imported:
ID           NAME    
2323      PUAL
                 -----Scheduled-----              
Scheduled
From    To    Duration      Activity
06:00  07:45  01:45       start
07:45  08:00  00:15          break
10:30  12:30  02:00       sick
Table that will be import to with 3 columns.
ID     Activity       Duration

I will like to capture the id which is my primary key
and Paul sick activity as well as it duration. I know
this is hard but any help will do. The wizard in access
will not do. I have created a specification but it does
not arrange the data like I will like it to. I do not
even clean up the data.
Thanks in advance
John Nurick - 30 Sep 2004 06:45 GMT
Hi Mary,

This sort of thing usually isn't too hard to handle with a little script
or a custom import routine, but it's necessary to know just what "other
garbage" appears in the file in order ensure that it won't stop the
script working properly. If you email me a sample file (remove the
anti-spam middle name from my email address) I'll take a look at it and
we can work out the best way to go.

>I am working on some text files   that I will need to
>import to access. However, before I can transfer the data
[quoted text clipped - 27 lines]
>even clean up the data.
>Thanks in advance

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.