Solved

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

Posted on 2006-11-15
4
162 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
Comment Utility
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
Comment Utility
Why not create a report (in Access) and then export that report to text file.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

9 Experts available now in Live!

Get 1:1 Help Now