DOCPROPERTY in letter header can this be merged?

J

justagrunt

If I create a DOCPROPERTY in a header of a letter I get "Error bookmark
undefined"
How can I merge a feild into the header so that it can be used over and over
as a template.
 
M

macropod

Hi Bill,

DOCPROPERTY fields need to be given a valid parameter to work. You can see the list of valid parameters if you insert one via
Insert|Field and click on the 'options' tab.

Cheers

--
macropod
[MVP - Microsoft Word]


| If I create a DOCPROPERTY in a header of a letter I get "Error bookmark
| undefined"
| How can I merge a feild into the header so that it can be used over and over
| as a template.
| --
| Regards
| Bill
 
J

justagrunt

Thanks,
If this is a custom property that I have created for a mail merge, the field
name is in the custom properties and the information is taken from an access
table.
I give it the parameter {DOCPROPERTY "QuoteRef" \* MERGEFORMAT} The
"QuoteRef" is also used elsewhere in the letter and populates OK.
Do I have a possible problem with it being in the Header?
Is there any reason that the Custom Property will not work in a Header?
Is there a correct way to get a mail merge field into the header?
 
D

Doug Robbins - Word MVP

Use a DOCVARIABLE field and set a document variable using the data from
Access.

While some people say that DOCVARIABLE fields will cause problems in
headers, my experience is exactly the opposite and I believe that it is
DOCPROPERTY fields that have the problems.

--
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

justagrunt said:
Thanks,
If this is a custom property that I have created for a mail merge, the
field
name is in the custom properties and the information is taken from an
access
table.
I give it the parameter {DOCPROPERTY "QuoteRef" \* MERGEFORMAT} The
"QuoteRef" is also used elsewhere in the letter and populates OK.
Do I have a possible problem with it being in the Header?
Is there any reason that the Custom Property will not work in a Header?
Is there a correct way to get a mail merge field into the header?
--
Regards
Bill


macropod said:
Hi Bill,

DOCPROPERTY fields need to be given a valid parameter to work. You can
see the list of valid parameters if you insert one via
Insert|Field and click on the 'options' tab.

Cheers

--
macropod
[MVP - Microsoft Word]


| If I create a DOCPROPERTY in a header of a letter I get "Error bookmark
| undefined"
| How can I merge a feild into the header so that it can be used over and
over
| as a template.
| --
| Regards
| Bill
 
P

Peter Jamieson

FWIW there was undoubtedly an error with DOCVARIABLE fields in the original
version of Word 97 (the first version of Windows Word with the DOCVARIABLE
field, as it happens) but it was fixed in an update (see e.g.
http://support.microsoft.com/kb/168923 )

I have also encountered problems with DOCPROPERTY fields: "linked"
properties are certainly to be avoided, and ISTR problems with "date" type
properties - probably to do with the date format, locales etc. I wouldn't
personally use any property type other than "text", which I've used
extensively with DOCPROPERTY fields for a long time without problems.
Probably forgotten the teething troubles now though:)

Peter Jamieson

Doug Robbins - Word MVP said:
Use a DOCVARIABLE field and set a document variable using the data from
Access.

While some people say that DOCVARIABLE fields will cause problems in
headers, my experience is exactly the opposite and I believe that it is
DOCPROPERTY fields that have the problems.

--
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

justagrunt said:
Thanks,
If this is a custom property that I have created for a mail merge, the
field
name is in the custom properties and the information is taken from an
access
table.
I give it the parameter {DOCPROPERTY "QuoteRef" \* MERGEFORMAT} The
"QuoteRef" is also used elsewhere in the letter and populates OK.
Do I have a possible problem with it being in the Header?
Is there any reason that the Custom Property will not work in a Header?
Is there a correct way to get a mail merge field into the header?
--
Regards
Bill


macropod said:
Hi Bill,

DOCPROPERTY fields need to be given a valid parameter to work. You can
see the list of valid parameters if you insert one via
Insert|Field and click on the 'options' tab.

Cheers

--
macropod
[MVP - Microsoft Word]


| If I create a DOCPROPERTY in a header of a letter I get "Error
bookmark
| undefined"
| How can I merge a feild into the header so that it can be used over
and over
| as a template.
| --
| Regards
| Bill
 

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