473,473 Members | 4,257 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Extract specific data fields from a text file and link them to ms access table

3 New Member
Hi All,
I happened to run a report from a mainframe and I get the report in a form of text file everyday. I need only specific data from the whole report and the text file is not delimited or in any structured format. How to extract specific data from a text file and import it on to ms access table. And also if I place the same file in a folder and run on daily basis to import the same data fields then please guide me how to achieve it ...thanks in advance..
Jul 18 '15 #1
1 1130
jimatqsi
1,271 Recognized Expert Top Contributor
There must be some keywords or some patterns within the text file or you have a very manual process on your hands. It is possible to read text files with Access, line by line or character by character if you choose. All that is lacking is some rules to guide the parsing process.

Study several files. What are you trying to pull out? How is it identified in the text? That is, how do you know which pieces of data you want? Talk it out with someone. How would you do it in a completely manual way? Then come back here and describe your project again.

There are numerous threads about this sort of problem here at Bytes.com. Take a look at http://bytes.com/topic/access/answer...file-byte-byte or do a web search like this: vba access read text files site:bytes.com

Also, look at DoCmd.TransferText.

Jim
Jul 19 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: JH | last post by:
I have a comma delimited file and I want to export it to an MS access table already designed with appropriate field names. How do I do this programmatically using VB.NET or C#? Thanks for any...
0
by: Salena | last post by:
Hi: I have 100's of records in my microsoft inbox which i saved into a text file. I need help how to i import all of them into access table through ASP. I try it but my script only read the first...
2
by: RadhakrishnanR | last post by:
Hi, By using VB6.0, I want to export database table data into text file with a tab delimiter. My User interface has: • Drop down list box contain list of data base table name. • A path...
1
by: pappu | last post by:
Hi friends, I m just stuck with extracting excel file data into text file. So can any body please help me out. thx, Sachin.
3
by: mainul | last post by:
Hi guys i can write text file and also can read it. below are the codes. <?PHP //write to a file $body_content="This is my content"; // Store some text to enter inside the file...
7
by: voroojak | last post by:
Hi I have a text file that has differnt information to be more clear i hav eto say that i have three differnt kind of information. the column name for all the information are same but there is...
21
Mas Juliza Alias
by: Mas Juliza Alias | last post by:
Hi, I am building a program on Information System for Reservoir Operation for my Masters research. Now I have a text file which is an output file from a processing software (Terramodel) that lists...
1
by: vvasude2 | last post by:
Hello All, I am a new to VBA and Access. I would like to build code to be able to import a text file to a access database table. The text file is piped delimited. I have attached a sample of it...
1
by: Arup1987 | last post by:
hI... I have one raw data file with the sequence as follows: first 6 digits are date next 4 digits are time followed by counts of next 5 digits and repeatation of the same pattern throughout the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.