Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Hell-fire Hell-fire is offline
external usenet poster
 
Posts: 9
Default Help to setup mailmerge sort by category in word 2000

Hi,

Thanks to the link provided by Peter Jamieson, I saw a different way to sort
my mail merge. Now the problem is, I really can't figure out the logic on
how to do this.

I have created a mail merge in a catelog format that pulls data from an
Access Query. There are 13 fields involved. Two fields are practically the
same (Reportorder and Problemstatus), just one is a number the other is the
description. The Query is setup to sort by Reportorder (ascending) and ID
(descending)

When I do the mail merge it sorts everything the way I want, but I don't
want to see the Problemstatus repeated for the same category. I would like
the Problemstatus to show once followed by the ID's in that category, then
move on to the next category, etc.

For the Reportorder and Problemstatus, there are 12 categories. How would
one setup the mail merge field coding to do this? I hope I supplied enough
detail, but if not, please let me know what else you would like. Thank you
for anyone willing to tackle this problem of mine.








  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Help to setup mailmerge sort by category in word 2000

Another example would help!

If there is a 1-1 correspondence between Reportorder and Problemstatus and
by "12 categories" you mean there are 12 Reportorder values (and 12
equivalent Problemstatus values), then you need to test either Reportorser
or Problemstatus in the same way that the example tests/ City.

e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Reportorder }" "" }ENTER
{ SET RO1 { MERGEFIELD City }}ENTER
{ If { RO2 } { RO1 }"ENTER
{ MERGEFIELD ReportOrder } { MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" }{ SET RO2 { MERGEFIELD City }}ENTER

However, you may need to alter the ENTERs to achieve the layout you need.

If there isn't a 1-1 correspondence between Reportorder and Problemstatus
and there can be several combinations of them, then you need to tell us a
bit more about your inputs and desired outputs. (Sorry, I will be away for a
few days...)

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi,

Thanks to the link provided by Peter Jamieson, I saw a different way to
sort
my mail merge. Now the problem is, I really can't figure out the logic on
how to do this.

I have created a mail merge in a catelog format that pulls data from an
Access Query. There are 13 fields involved. Two fields are practically
the
same (Reportorder and Problemstatus), just one is a number the other is
the
description. The Query is setup to sort by Reportorder (ascending) and ID
(descending)

When I do the mail merge it sorts everything the way I want, but I don't
want to see the Problemstatus repeated for the same category. I would
like
the Problemstatus to show once followed by the ID's in that category, then
move on to the next category, etc.

For the Reportorder and Problemstatus, there are 12 categories. How would
one setup the mail merge field coding to do this? I hope I supplied
enough
detail, but if not, please let me know what else you would like. Thank
you
for anyone willing to tackle this problem of mine.









  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Hell-fire Hell-fire is offline
external usenet poster
 
Posts: 9
Default Help to setup mailmerge sort by category in word 2000

Hi Peter,

The Reportorder has value 1 to 12 and the Problemstatus description follows
the same order. For example 1 = Assessment in process-E, 2 = Assessment in
process-E/P.

For each record, the data corresponds correctly. On the mail merge template
though, I don't use Reportorder, but use Problemstatus and it sorts out
correctly, just don't need it to appear with each record. I hope I didn't
make this any more confusing.

I have tried to understand the format shown on the MS site, but not quite
sure how to properly formulate it. Thank you.


"Peter Jamieson" wrote:

Another example would help!

If there is a 1-1 correspondence between Reportorder and Problemstatus and
by "12 categories" you mean there are 12 Reportorder values (and 12
equivalent Problemstatus values), then you need to test either Reportorser
or Problemstatus in the same way that the example tests/ City.

e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Reportorder }" "" }ENTER
{ SET RO1 { MERGEFIELD City }}ENTER
{ If { RO2 } { RO1 }"ENTER
{ MERGEFIELD ReportOrder } { MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" }{ SET RO2 { MERGEFIELD City }}ENTER

However, you may need to alter the ENTERs to achieve the layout you need.

If there isn't a 1-1 correspondence between Reportorder and Problemstatus
and there can be several combinations of them, then you need to tell us a
bit more about your inputs and desired outputs. (Sorry, I will be away for a
few days...)

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi,

Thanks to the link provided by Peter Jamieson, I saw a different way to
sort
my mail merge. Now the problem is, I really can't figure out the logic on
how to do this.

I have created a mail merge in a catelog format that pulls data from an
Access Query. There are 13 fields involved. Two fields are practically
the
same (Reportorder and Problemstatus), just one is a number the other is
the
description. The Query is setup to sort by Reportorder (ascending) and ID
(descending)

When I do the mail merge it sorts everything the way I want, but I don't
want to see the Problemstatus repeated for the same category. I would
like
the Problemstatus to show once followed by the ID's in that category, then
move on to the next category, etc.

For the Reportorder and Problemstatus, there are 12 categories. How would
one setup the mail merge field coding to do this? I hope I supplied
enough
detail, but if not, please let me know what else you would like. Thank
you
for anyone willing to tackle this problem of mine.










  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Help to setup mailmerge sort by category in word 2000

Well, I totally failed to give yout the correct info - try, e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Problemstatus }" "" }ENTER
{ SET PS1 { MERGEFIELD Problemstatus }}ENTER
{ If { PS2 } { PS1 }"ENTER
{ MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" "{ MERGEIELD ID }" }{ SET PS2 { MERGEFIELD
Problemstatus }}ENTER


Two possible problems a
a. All the {} have to be the special field braces you can insert using
ctrl-F9
b. where the text says ENTER, press the Enter key (i.e. insert a
paragraph mark).

However, I would in any case do things a bit differently from the way they
have done it, e.g.

{ IF { MERGESEQ } = "1" "{ SET PS { MERGEFIELD Problemstatus } }" ""
}{ If { PS } { MERGEFIELD Problemstatus }
"{ MERGEFIELD Problemstatus }

" "" }{ MERGEFIELD ID }
{ SET PS { MERGEFIELD Problemstatus } }

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi Peter,

The Reportorder has value 1 to 12 and the Problemstatus description
follows
the same order. For example 1 = Assessment in process-E, 2 = Assessment
in
process-E/P.

For each record, the data corresponds correctly. On the mail merge
template
though, I don't use Reportorder, but use Problemstatus and it sorts out
correctly, just don't need it to appear with each record. I hope I didn't
make this any more confusing.

I have tried to understand the format shown on the MS site, but not quite
sure how to properly formulate it. Thank you.


"Peter Jamieson" wrote:

Another example would help!

If there is a 1-1 correspondence between Reportorder and Problemstatus
and
by "12 categories" you mean there are 12 Reportorder values (and 12
equivalent Problemstatus values), then you need to test either
Reportorser
or Problemstatus in the same way that the example tests/ City.

e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Reportorder }" "" }ENTER
{ SET RO1 { MERGEFIELD City }}ENTER
{ If { RO2 } { RO1 }"ENTER
{ MERGEFIELD ReportOrder } { MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" }{ SET RO2 { MERGEFIELD City }}ENTER

However, you may need to alter the ENTERs to achieve the layout you
need.

If there isn't a 1-1 correspondence between Reportorder and Problemstatus
and there can be several combinations of them, then you need to tell us a
bit more about your inputs and desired outputs. (Sorry, I will be away
for a
few days...)

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi,

Thanks to the link provided by Peter Jamieson, I saw a different way to
sort
my mail merge. Now the problem is, I really can't figure out the logic
on
how to do this.

I have created a mail merge in a catelog format that pulls data from an
Access Query. There are 13 fields involved. Two fields are
practically
the
same (Reportorder and Problemstatus), just one is a number the other is
the
description. The Query is setup to sort by Reportorder (ascending) and
ID
(descending)

When I do the mail merge it sorts everything the way I want, but I
don't
want to see the Problemstatus repeated for the same category. I would
like
the Problemstatus to show once followed by the ID's in that category,
then
move on to the next category, etc.

For the Reportorder and Problemstatus, there are 12 categories. How
would
one setup the mail merge field coding to do this? I hope I supplied
enough
detail, but if not, please let me know what else you would like. Thank
you
for anyone willing to tackle this problem of mine.











  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Hell-fire Hell-fire is offline
external usenet poster
 
Posts: 9
Default Help to setup mailmerge sort by category in word 2000

Thank you Peter,

I will give it a try and tell ya how it goes.

"Peter Jamieson" wrote:

Well, I totally failed to give yout the correct info - try, e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Problemstatus }" "" }ENTER
{ SET PS1 { MERGEFIELD Problemstatus }}ENTER
{ If { PS2 } { PS1 }"ENTER
{ MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" "{ MERGEIELD ID }" }{ SET PS2 { MERGEFIELD
Problemstatus }}ENTER


Two possible problems a
a. All the {} have to be the special field braces you can insert using
ctrl-F9
b. where the text says ENTER, press the Enter key (i.e. insert a
paragraph mark).

However, I would in any case do things a bit differently from the way they
have done it, e.g.

{ IF { MERGESEQ } = "1" "{ SET PS { MERGEFIELD Problemstatus } }" ""
}{ If { PS } { MERGEFIELD Problemstatus }
"{ MERGEFIELD Problemstatus }

" "" }{ MERGEFIELD ID }
{ SET PS { MERGEFIELD Problemstatus } }

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi Peter,

The Reportorder has value 1 to 12 and the Problemstatus description
follows
the same order. For example 1 = Assessment in process-E, 2 = Assessment
in
process-E/P.

For each record, the data corresponds correctly. On the mail merge
template
though, I don't use Reportorder, but use Problemstatus and it sorts out
correctly, just don't need it to appear with each record. I hope I didn't
make this any more confusing.

I have tried to understand the format shown on the MS site, but not quite
sure how to properly formulate it. Thank you.


"Peter Jamieson" wrote:

Another example would help!

If there is a 1-1 correspondence between Reportorder and Problemstatus
and
by "12 categories" you mean there are 12 Reportorder values (and 12
equivalent Problemstatus values), then you need to test either
Reportorser
or Problemstatus in the same way that the example tests/ City.

e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Reportorder }" "" }ENTER
{ SET RO1 { MERGEFIELD City }}ENTER
{ If { RO2 } { RO1 }"ENTER
{ MERGEFIELD ReportOrder } { MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" }{ SET RO2 { MERGEFIELD City }}ENTER

However, you may need to alter the ENTERs to achieve the layout you
need.

If there isn't a 1-1 correspondence between Reportorder and Problemstatus
and there can be several combinations of them, then you need to tell us a
bit more about your inputs and desired outputs. (Sorry, I will be away
for a
few days...)

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi,

Thanks to the link provided by Peter Jamieson, I saw a different way to
sort
my mail merge. Now the problem is, I really can't figure out the logic
on
how to do this.

I have created a mail merge in a catelog format that pulls data from an
Access Query. There are 13 fields involved. Two fields are
practically
the
same (Reportorder and Problemstatus), just one is a number the other is
the
description. The Query is setup to sort by Reportorder (ascending) and
ID
(descending)

When I do the mail merge it sorts everything the way I want, but I
don't
want to see the Problemstatus repeated for the same category. I would
like
the Problemstatus to show once followed by the ID's in that category,
then
move on to the next category, etc.

For the Reportorder and Problemstatus, there are 12 categories. How
would
one setup the mail merge field coding to do this? I hope I supplied
enough
detail, but if not, please let me know what else you would like. Thank
you
for anyone willing to tackle this problem of mine.














  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Hell-fire Hell-fire is offline
external usenet poster
 
Posts: 9
Default Help to setup mailmerge sort by category in word 2000

Hi Peter,

Well, I used your suggestion and it works, except that the first category
doesn't show up, but the rest do. For me I can actually live with the
result, but will have to see if the person I'm doing this for is okay with
the first category not showing.

Thank you so much for your help.

"Peter Jamieson" wrote:

Well, I totally failed to give yout the correct info - try, e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Problemstatus }" "" }ENTER
{ SET PS1 { MERGEFIELD Problemstatus }}ENTER
{ If { PS2 } { PS1 }"ENTER
{ MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" "{ MERGEIELD ID }" }{ SET PS2 { MERGEFIELD
Problemstatus }}ENTER


Two possible problems a
a. All the {} have to be the special field braces you can insert using
ctrl-F9
b. where the text says ENTER, press the Enter key (i.e. insert a
paragraph mark).

However, I would in any case do things a bit differently from the way they
have done it, e.g.

{ IF { MERGESEQ } = "1" "{ SET PS { MERGEFIELD Problemstatus } }" ""
}{ If { PS } { MERGEFIELD Problemstatus }
"{ MERGEFIELD Problemstatus }

" "" }{ MERGEFIELD ID }
{ SET PS { MERGEFIELD Problemstatus } }

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi Peter,

The Reportorder has value 1 to 12 and the Problemstatus description
follows
the same order. For example 1 = Assessment in process-E, 2 = Assessment
in
process-E/P.

For each record, the data corresponds correctly. On the mail merge
template
though, I don't use Reportorder, but use Problemstatus and it sorts out
correctly, just don't need it to appear with each record. I hope I didn't
make this any more confusing.

I have tried to understand the format shown on the MS site, but not quite
sure how to properly formulate it. Thank you.


"Peter Jamieson" wrote:

Another example would help!

If there is a 1-1 correspondence between Reportorder and Problemstatus
and
by "12 categories" you mean there are 12 Reportorder values (and 12
equivalent Problemstatus values), then you need to test either
Reportorser
or Problemstatus in the same way that the example tests/ City.

e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Reportorder }" "" }ENTER
{ SET RO1 { MERGEFIELD City }}ENTER
{ If { RO2 } { RO1 }"ENTER
{ MERGEFIELD ReportOrder } { MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" }{ SET RO2 { MERGEFIELD City }}ENTER

However, you may need to alter the ENTERs to achieve the layout you
need.

If there isn't a 1-1 correspondence between Reportorder and Problemstatus
and there can be several combinations of them, then you need to tell us a
bit more about your inputs and desired outputs. (Sorry, I will be away
for a
few days...)

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi,

Thanks to the link provided by Peter Jamieson, I saw a different way to
sort
my mail merge. Now the problem is, I really can't figure out the logic
on
how to do this.

I have created a mail merge in a catelog format that pulls data from an
Access Query. There are 13 fields involved. Two fields are
practically
the
same (Reportorder and Problemstatus), just one is a number the other is
the
description. The Query is setup to sort by Reportorder (ascending) and
ID
(descending)

When I do the mail merge it sorts everything the way I want, but I
don't
want to see the Problemstatus repeated for the same category. I would
like
the Problemstatus to show once followed by the ID's in that category,
then
move on to the next category, etc.

For the Reportorder and Problemstatus, there are 12 categories. How
would
one setup the mail merge field coding to do this? I hope I supplied
enough
detail, but if not, please let me know what else you would like. Thank
you
for anyone willing to tackle this problem of mine.












  #7   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Help to setup mailmerge sort by category in word 2000

Should be

{ IF { MERGESEQ } = "1" "{ SET PS "" }" ""
}{ If { PS } { MERGEFIELD Problemstatus }
"{ MERGEFIELD Problemstatus }

" "" }{ MERGEFIELD ID }
{ SET PS { MERGEFIELD Problemstatus } }

and it assumes that Problemstatus is never ""
--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi Peter,

Well, I used your suggestion and it works, except that the first category
doesn't show up, but the rest do. For me I can actually live with the
result, but will have to see if the person I'm doing this for is okay with
the first category not showing.

Thank you so much for your help.

"Peter Jamieson" wrote:

Well, I totally failed to give yout the correct info - try, e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Problemstatus }" "" }ENTER
{ SET PS1 { MERGEFIELD Problemstatus }}ENTER
{ If { PS2 } { PS1 }"ENTER
{ MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" "{ MERGEIELD ID }" }{ SET PS2 { MERGEFIELD
Problemstatus }}ENTER


Two possible problems a
a. All the {} have to be the special field braces you can insert using
ctrl-F9
b. where the text says ENTER, press the Enter key (i.e. insert a
paragraph mark).

However, I would in any case do things a bit differently from the way
they
have done it, e.g.

{ IF { MERGESEQ } = "1" "{ SET PS { MERGEFIELD Problemstatus } }" ""
}{ If { PS } { MERGEFIELD Problemstatus }
"{ MERGEFIELD Problemstatus }

" "" }{ MERGEFIELD ID }
{ SET PS { MERGEFIELD Problemstatus } }

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi Peter,

The Reportorder has value 1 to 12 and the Problemstatus description
follows
the same order. For example 1 = Assessment in process-E, 2 =
Assessment
in
process-E/P.

For each record, the data corresponds correctly. On the mail merge
template
though, I don't use Reportorder, but use Problemstatus and it sorts out
correctly, just don't need it to appear with each record. I hope I
didn't
make this any more confusing.

I have tried to understand the format shown on the MS site, but not
quite
sure how to properly formulate it. Thank you.


"Peter Jamieson" wrote:

Another example would help!

If there is a 1-1 correspondence between Reportorder and Problemstatus
and
by "12 categories" you mean there are 12 Reportorder values (and 12
equivalent Problemstatus values), then you need to test either
Reportorser
or Problemstatus in the same way that the example tests/ City.

e.g.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD Reportorder }" "" }ENTER
{ SET RO1 { MERGEFIELD City }}ENTER
{ If { RO2 } { RO1 }"ENTER
{ MERGEFIELD ReportOrder } { MERGEFIELD Problemstatus }ENTER
ENTER
{ MERGEFIELD ID }" }{ SET RO2 { MERGEFIELD City }}ENTER

However, you may need to alter the ENTERs to achieve the layout you
need.

If there isn't a 1-1 correspondence between Reportorder and
Problemstatus
and there can be several combinations of them, then you need to tell
us a
bit more about your inputs and desired outputs. (Sorry, I will be away
for a
few days...)

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Hell-fire" wrote in message
...
Hi,

Thanks to the link provided by Peter Jamieson, I saw a different way
to
sort
my mail merge. Now the problem is, I really can't figure out the
logic
on
how to do this.

I have created a mail merge in a catelog format that pulls data from
an
Access Query. There are 13 fields involved. Two fields are
practically
the
same (Reportorder and Problemstatus), just one is a number the other
is
the
description. The Query is setup to sort by Reportorder (ascending)
and
ID
(descending)

When I do the mail merge it sorts everything the way I want, but I
don't
want to see the Problemstatus repeated for the same category. I
would
like
the Problemstatus to show once followed by the ID's in that
category,
then
move on to the next category, etc.

For the Reportorder and Problemstatus, there are 12 categories. How
would
one setup the mail merge field coding to do this? I hope I supplied
enough
detail, but if not, please let me know what else you would like.
Thank
you
for anyone willing to tackle this problem of mine.













Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one category sort if function mail merge CmK Mailmerge 4 December 19th 06 01:59 AM
Word 2000 Sort/alpha cannot sort in Finnish kirra Microsoft Word Help 1 June 6th 06 07:44 PM
Mailmerge to category A minus all A's that are also in Category B... Henk Dordrecht Mailmerge 0 September 20th 05 06:51 PM
Word 2000 Missing category holidaypro Microsoft Word Help 1 March 23rd 05 04:55 AM
Office 2003: How do I sort mail merge using Outlook category Dean Lassiter Mailmerge 1 December 26th 04 01:29 PM


All times are GMT +1. The time now is 12:47 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"