View Single Post
 
Old 12-11-2012, 01:12 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Engineer,

If each table always lists the same items, you don't need either them or their contents to be in the data source. Rather, your data source can simply contain a code (eg A, B, C) in a field named 'table' or something such to tell Word which of a series of tables embedded in fields within it to display. Such a series of fields might be coded as:
{IF{MERGEFIELD Table}= "A" "Table for A"}{IF{MERGEFIELD Table}= "B" "Table for B"}{IF{MERGEFIELD Table}= "C" "Table for C"}
where the field brace pairs (ie '{ }') are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote