Wouldn't it be easier the ensure that the datasource always contains the
field, even if it contains no data?

Signature
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
>I have a macro that merges several documents and then combines the
>documents
[quoted text clipped - 8 lines]
> error
> message and have any missing fields automatically removed. Any ideas?
Donna F - 17 Jul 2007 16:08 GMT
Unfortunately the data comes out of a crosstab query in MS Access and gets
dumped into an Excel spreadsheet. the crosstab only summarizes data that
exists.
> Wouldn't it be easier the ensure that the datasource always contains the
> field, even if it contains no data?
[quoted text clipped - 11 lines]
> > error
> > message and have any missing fields automatically removed. Any ideas?