Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Mark
 
Posts: n/a
Default mailmerge and Visual Foxpro

Hi,
I connect to a VFP Database via ODBC DSN and open the requested table. The
data is displayed in its natural order. I click on the name field to have the
order set to "name". I return to my mailmerge lables and save my word.doc.
Next time when I open the doc, the data is displayed in natural order again
and I have to repeat the silly task of setting the wanted order.
Any hint.
Thank you
Mark
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
 
Posts: n/a
Default mailmerge and Visual Foxpro

I don't know anything about VFP, but if you were using Access, I would
suggest creating a Query in which the data was sorted by the Name field and
use the Query as the data source.

--
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

"Mark" wrote in message
...
Hi,
I connect to a VFP Database via ODBC DSN and open the requested table. The
data is displayed in its natural order. I click on the name field to have
the
order set to "name". I return to my mailmerge lables and save my word.doc.
Next time when I open the doc, the data is displayed in natural order
again
and I have to repeat the silly task of setting the wanted order.
Any hint.
Thank you
Mark



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Mark
 
Posts: n/a
Default mailmerge and Visual Foxpro

Hi Doug,
Well that would be double work! No other hint?
Thanks
Mark

"Doug Robbins - Word MVP" wrote:

I don't know anything about VFP, but if you were using Access, I would
suggest creating a Query in which the data was sorted by the Name field and
use the Query as the data source.

--
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

"Mark" wrote in message
...
Hi,
I connect to a VFP Database via ODBC DSN and open the requested table. The
data is displayed in its natural order. I click on the name field to have
the
order set to "name". I return to my mailmerge lables and save my word.doc.
Next time when I open the doc, the data is displayed in natural order
again
and I have to repeat the silly task of setting the wanted order.
Any hint.
Thank you
Mark




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
 
Posts: n/a
Default mailmerge and Visual Foxpro

Which version of Word? Which SP?

Which version of the VFP driver (you cna find out in the ODBC
administrator).

Are you connecting to a DBF that you select in "Select Data Source", or a
dbc?

Can you open the visual basic editor and in the immediate window type

print Activedocument.Mailmerge.Datasource.Querystring

and post the results here? If so, it would help if you could post the result
a. before you sort
b. immediately after you sort
c. after you close and re-open the document

The value of ActiveDocument.Mailmerge.Datasource.connectstring would also be
useful.

If you are using Word XP, attempting to see those values may crash Word, in
which case, you may be able to see what query Word is using by
a. saving as a Web page, complete and closing
b. checking Word Tools|Options|General|Confirm Conversions at open
c. opening the .htm file you saved, specifying plain text when the
converter dialog box comes up (or ignore (b) and just open the .htm file in
Notepad)
d. finding the block of Datasource information and extracting the query
string and connect string from there.

Peter Jamieson

"Mark" wrote in message
...
Hi,
I connect to a VFP Database via ODBC DSN and open the requested table. The
data is displayed in its natural order. I click on the name field to have
the
order set to "name". I return to my mailmerge lables and save my word.doc.
Next time when I open the doc, the data is displayed in natural order
again
and I have to repeat the silly task of setting the wanted order.
Any hint.
Thank you
Mark



  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
 
Posts: n/a
Default mailmerge and Visual Foxpro

I am not sure that it would be double work. It would only have to be done
one time.

--
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

"Mark" wrote in message
...
Hi Doug,
Well that would be double work! No other hint?
Thanks
Mark

"Doug Robbins - Word MVP" wrote:

I don't know anything about VFP, but if you were using Access, I would
suggest creating a Query in which the data was sorted by the Name field
and
use the Query as the data source.

--
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

"Mark" wrote in message
...
Hi,
I connect to a VFP Database via ODBC DSN and open the requested table.
The
data is displayed in its natural order. I click on the name field to
have
the
order set to "name". I return to my mailmerge lables and save my
word.doc.
Next time when I open the doc, the data is displayed in natural order
again
and I have to repeat the silly task of setting the wanted order.
Any hint.
Thank you
Mark






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
Problem with execute command in mailmerge JurgenRoeland Mailmerge 3 December 6th 05 06:20 PM
Using OLE to change mailmerge datasource LuckyLady Mailmerge 2 September 16th 05 12:05 AM
Use of VisualFoxpro 8 data source. Jim Hawkins Mailmerge 3 July 14th 05 02:47 PM
Word 2003 Mailmerge problem - works in Word 2000 Rick Robinson Mailmerge 2 April 28th 05 10:16 AM
Included Property in Word 2003 MailMerge Alessio Mailmerge 1 December 23rd 04 11:26 AM


All times are GMT +1. The time now is 08:07 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"