Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Rothrock Rothrock is offline
external usenet poster
 
Posts: 2
Default Merge multiple records into one

I'm trying to merge an old multiple choice and true false test from some XML
to Word. I've opened the XML in Excel to get rid of a bunch of tags and
attributes that I don't need.

The problem is that each question has a record for each answer so the
multiple choice questions will look like this:

ID1 questiontext answer 1
ID1 questiontext answer 2
ID1 questiontext answer 3 true
ID1 questiontext answer 4

And the true false will look like:

ID2 questiontext true
ID2 questiontext false true

All parts of a given question have the same ID number.

I want to merge then into a word document so that I have each question only
appear once, and then have the answers appear below. Then have the next
question and so on.

I tried using SET to set a currentID variable and then NEXT to see if the
next record had the same ID, but since that cannot be used inside
conditionals I am getting nowhere.

Basically what I want to do is say, if this record has a different ID than
the one before, merge this, this and this, if it has the same ID as the one
before then only merge this and this.

Is there a way to do this?
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Merge multiple records into one

See the following article and adapt the field names for your data:

http://support.microsoft.com/?kbid=294686

Peter Jamieson

"Rothrock" wrote in message
...
I'm trying to merge an old multiple choice and true false test from some
XML
to Word. I've opened the XML in Excel to get rid of a bunch of tags and
attributes that I don't need.

The problem is that each question has a record for each answer so the
multiple choice questions will look like this:

ID1 questiontext answer 1
ID1 questiontext answer 2
ID1 questiontext answer 3 true
ID1 questiontext answer 4

And the true false will look like:

ID2 questiontext true
ID2 questiontext false true

All parts of a given question have the same ID number.

I want to merge then into a word document so that I have each question
only
appear once, and then have the answers appear below. Then have the next
question and so on.

I tried using SET to set a currentID variable and then NEXT to see if the
next record had the same ID, but since that cannot be used inside
conditionals I am getting nowhere.

Basically what I want to do is say, if this record has a different ID than
the one before, merge this, this and this, if it has the same ID as the
one
before then only merge this and this.

Is there a way to do this?



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Rothrock Rothrock is offline
external usenet poster
 
Posts: 2
Default Merge multiple records into one

Thanks. I had worked out something similar to that. But without the MERGESEQ.
So I had to go in and fix up the first one by hand.
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
how to merge multiple records in one page chmurthy Microsoft Word Help 1 November 23rd 06 07:01 PM
Merge Multiple Records per page Access101 Mailmerge 1 July 6th 06 05:37 PM
print multiple records merge Missy Mailmerge 1 March 14th 06 07:17 PM
Multiple Records Mail Merge yuckster Microsoft Word Help 1 November 26th 05 07:08 AM
Merge Multiple Records into One Document jdb Mailmerge 3 December 11th 04 12:33 AM


All times are GMT +1. The time now is 07:48 AM.

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"