Place value into Header

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
Hi,

Your solution might be as simple as the following:

m_docReport.Sections(1).Headers(wdHeaderFooterPrimary).Range.Text = "2/7/2006"
 
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.
 
Back
Top