[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Saving Access table data to RTF Format

Posted on 1998-07-09
9
Medium Priority
?
329 Views
Last Modified: 2010-05-03
I want to SAVE access 97 database table records  as  RTF format or
word document. So How can I do it with Visual basic code.????/
There is a function called Transfer database. But not good enough is there any other way of doing it?
0
Comment
Question by:ozlem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 

Author Comment

by:ozlem
ID: 1465298
Edited text of question
0
 

Author Comment

by:ozlem
ID: 1465299
Edited text of question
0
 
LVL 9

Expert Comment

by:cymbolic
ID: 1465300
You can export it into a text file, then import it into Word.  Will that do it for you, or are you looking for some kind of repeating dynamic process?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Expert Comment

by:wford
ID: 1465301
what about to a html document, word97 reads them?
0
 

Author Comment

by:ozlem
ID: 1465302
Yes, I am looking for some kind of repeating dynamic process.
0
 
LVL 3

Accepted Solution

by:
chapie earned 40 total points
ID: 1465303
if you are trying to do this in VB then I can only think of creating a recordset clone and manipulating it that way...I would probably drop an RTF (or text) control on a form, along with the data control and in the code do something like the following

dim rsRecords as recordset, intRecCount as integer

set rsRecords = me.datacontrolname.recordset.clone
intRecCount = 1

with rsRecords
  .movefirst
  do until .eof
    me.RTFcontrolName = rsRecords("FieldName")
    me.RTFcontrolName.SaveFile bstrFileName:="FileName" & intreccount
    .movenext
  loop
end with
0
 

Expert Comment

by:soeding1
ID: 1465304
ozlem,

do it manually:

- Query the database
- Create a new text document and write to it with RTF code, then save it as "xyz.rtf"

txt = "{\rtf\qc" _               ' this is a RTF document
& "{\b\fs12 " _                 ' bold, fontsize 12
& rec!MyTableField _       ' from your database
& "}}"
Open app.Path & "\xyz.rtf" For Output As #1
Print #1, txt
Close #1

- Create a RTF document in word, open it with a text editor.
Have a look for other available formats than 'bold' and 'fontsize'.

Regards
0
 

Author Comment

by:ozlem
ID: 1465305
Thanks a lot
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1465306
Bought This Question.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

656 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