Can I enter the record once with one of the fields being a qty and have that
record merged into a word label doc the number of times specified in the qty
field?
As long as your quantity field(s) never exceed a certain maximum (let's say
5) you could do the following:
Create a directory (catalog) merge
Put the following fields in it
{ IF { MERGEFIELD QUANTITY } > 0 "{ MERGEFIELD IDNUMBER }
" }{ IF { MERGEFIELD QUANTITY } > 1 "{ MERGEFIELD IDNUMBER }
" }{ IF { MERGEFIELD QUANTITY } > 2 "{ MERGEFIELD IDNUMBER }
" }{ IF { MERGEFIELD QUANTITY } > 3 "{ MERGEFIELD IDNUMBER }
" }{ IF { MERGEFIELD QUANTITY } > 4 "{ MERGEFIELD IDNUMBER }
" }
Merge to a new document. You should have one column containing the right
number of IDNUMBERS. Manually insert the column header IDNUMBER, then use
that file as the data source for your merge.
NB, all the {} need to be the special field code braces you can enter using
ctrl-F9
--
Peter Jamieson
http://tips.pjmsn.me.uk
"Laser Apparel" <Laser App...@discussions.microsoft.com> wrote in message
news:C8D695A3-EC22-430F...@microsoft.com...
b. in that document, use ctrl-F9 to insert a pair of the special field code
braces. In the following instructions, use Alt-F9 as necessary to redisplay
all the braces and field codes if they disappear
{ }
c. click between the { } and type IF > 0 "" to give you
{ IF > 0 "" }
d. click after "IF " and use ctrl-F9 to insert another pair of braces:
{ IF { } > 0 "" }
e. click between the "" and use ctrl-F9 to insert another pair of braces:
{ IF { } > 0 "{ }" }
f. type MERGEFIELD Quantity between the first inner pair of braces (but use
whatever field name you need, rather than "Quantity")
{ IF { MERGEFIELD Quantity } > 0 "{ }" }
g. type MERGEFIELD IDNumber between the second inner pair of braces (but
use whatever field name you need, rather than "IDNumber")
{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }" }
h. Click immediately before that final double-quote ", and press the Enter
key (i.e. the one that would normally give you a new paragraph in Word:
{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }
" }
i. Select that bunch of fields, Edit|Copy, click after the closing brace,
and Edit|Paste:
{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }
" }{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }
" }
j. Repeat that as many times as you need to cope with the maximum number of
copies you are considering. e.g. if it's 4 you need
{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }
" }{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }
" }{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }
" }{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }
" }
k. modify those 0s so you have 0,1,2,3 (etc.)
{ IF { MERGEFIELD Quantity } > 0 "{ MERGEFIELD IDNumber }
" }{ IF { MERGEFIELD Quantity } > 1 "{ MERGEFIELD IDNumber }
" }{ IF { MERGEFIELD Quantity } > 2 "{ MERGEFIELD IDNumber }
" }{ IF { MERGEFIELD Quantity } > 3 "{ MERGEFIELD IDNumber }
" }
Merge to a new document...
--
Peter Jamieson
http://tips.pjmsn.me.uk
"Laser Apparel" <LaserA...@discussions.microsoft.com> wrote in message
news:75EF32F4-93EA-4EB7...@microsoft.com...