Saving a Word 2003 document

S

Stanley

I am programming Word through MS Access 2002. I open up a Word 2003 .doc on a
computer and then the user enters information into a text control (created
from the forms toolbar).

What I would like to do is force the user or through programming force the
document to be saved (use savedas in code).

I am thinking of a print button that prints the document and in the click
code also saves the document.

Can I do this from Access where Access acts as a user form? I can't have the
user close the document without saving it, and even at that I want to program
the directory the document goes into and name it with code.
Thanks,l
Stanley
 
D

Doug Robbins - Word MVP

If you are automating Word, you can definitely use the SaveAs command to
save the document.

I wonder however why you are having the user enter information into a
formfield in the document. Why don't you have the user enter information
into your Access form and then have that appear in the document by having a
docvariable field in the document and as part of the code in your Access
application, set the .Value of the document variable to the data that the
user entered into the Access form and then update the Fields in the document
so that the data appears there.

Show us your Access code if you need more specific assistance.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
S

Stanley

Doug Robbins - Word MVP said:
If you are automating Word, you can definitely use the SaveAs command to
save the document.

I wonder however why you are having the user enter information into a
formfield in the document. Why don't you have the user enter information
into your Access form and then have that appear in the document by having a
docvariable field in the document and as part of the code in your Access
application, set the .Value of the document variable to the data that the
user entered into the Access form and then update the Fields in the document
so that the data appears there.

Show us your Access code if you need more specific assistance.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
S

Stanley

Doug Robbins - Word MVP said:
If you are automating Word, you can definitely use the SaveAs command to
save the document.

I wonder however why you are having the user enter information into a
formfield in the document. Why don't you have the user enter information
into your Access form and then have that appear in the document by having a
docvariable field in the document and as part of the code in your Access
application, set the .Value of the document variable to the data that the
user entered into the Access form and then update the Fields in the document
so that the data appears there.

Show us your Access code if you need more specific assistance.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com


This would certainly work. The problem is the field is a signature (I am using a signature pad and the client has to read the Word document before signing it. The signature goes into the text box. I could bring the Word document up read only (how would I process it then--make a copy?) and have the user put his signature in the Access form. When he clicks print I could put the signature into the Word document and save it as I would like.
Any ideas?
Thanks,
Stanley
 
D

Doug Robbins - Word MVP

Show us the Access code that you are using to bring up the document.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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