Form Text files

B

Bob

If I create a form, I know I can save the data in a text
file. How can i append that text file each time new data
is entered on the form? I have tried using some Visual
Basic but can't get it to perform in Word. I am using
Word 2002. I have been wrestling with this problem for
quite a while so I would appreciate any help you can give
me.
 
C

Cindy Meister -WordMVP-

Hi Bob,
If I create a form, I know I can save the data in a text
file. How can i append that text file each time new data
is entered on the form?
Basically, Word can't do this on its own. You'd have to let
it physically save to a different text file, then use code
to bring that data into the other file.

But if you're going to do this, and you're already thinking
about using VB(A), I'd just take it straight out of the form
fields and append it to other, existing data. The basic
syntax for extracting form field content is quite simple:

ActiveDocument.FormFields("TheName").Result

I covered this topic in some detail a couple of years in an
article for Informant Publication's "Microsoft Office
Developer", and the text was in an on-line archive until the
beginning of this year. Now, it's only available on a CD:

https://www.mssmartsolutions.com/Orders/cdorders.asp

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top