Place value into Header

J

JR_06062005

I have created a Word document from an Access database and now I wish to
place in the Word Header the date that the database was last updated (that
information is part of the database).

I was hoping use the document object I created (m_docReport) and use one of
its properties, such as: m_docReport.header.value="2/7/2006". But that's not
an option.

My question is how do I get this value into the header of the document I've
created?
 
D

Dave Lett

Hi,

Your solution might be as simple as the following:

m_docReport.Sections(1).Headers(wdHeaderFooterPrimary).Range.Text = "2/7/2006"
 
J

Jezebel

Set up a template with a DocProperty field in the header; then in your
Access code create the document using that template and set the
DocumentProperty value.
 

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