Solved

How do I append data from mulitple tables in an access database to a single text file?

Posted on 2006-11-15
4
163 Views
Last Modified: 2010-04-16
I need to write a program to create a single text file from 3 different tables with Access 2002.  Line 1 of the text file is written from the 1st table then multiple lines of text are appended from a second table & lastly, a single line of text is appended from a third table.  I am using DoCmd.TransferText to create 3 different text files & then manually cut & paste into 1 text file.  Any ideas or code would be greatly appreciated.  Thanks.
0
Comment
Question by:gordonrr
4 Comments
 
LVL 5

Accepted Solution

by:
deeppra earned 250 total points
ID: 17954261
Hai,
      you can use JDBC for connecting to the database and it contains all the methods to retrive the data from the database.
give me the structure of your tables.

I think below link contains all the code to connect to a database
http://www.developer.com/db/article.php/3571661
0
 
LVL 4

Assisted Solution

by:hclgroup
hclgroup earned 250 total points
ID: 17955491
Why not create a report (in Access) and then export that report to text file.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 78
mapAB Challlenge 35 124
wordlen challenge 3 60
Definitions and default visual studio colors 5 58
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now