Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Sue Sweet Sue Sweet is offline
external usenet poster
 
Posts: 7
Default Mailmerge returns zero records

I am using Office2003 and am trying to do a mailmerge using an Access query
as my data list. I filter my query, save & close the query, open my main
document and each time it makes me open the data source and choose the query.
But then no records are returned. I can't figure out if the problem is with
Word or the Access database.

Hope someone can shed some light!!

Thanks

Sue
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Mailmerge returns zero records

1. As far as getting the query to return records is concerned, the
chances are that you are using a filter that uses wildcards (in SQL,
something along the lines of

SELECT * FROM mytable WHERE myfield LIKE "abc*"

There are two sets of Wildcards. Access normally uses "*" for "any
character string" and "?" for a single character, but the current SQL
standards, and the OLE DB provider that Word uses to get data from
Access/Jet, require "%" for "any character string" and "_" for a single
character.

If you can edit the SQL of your query directly in Access so that it uses
% instead of * and _ instead of ?, you may find that Word suddenly
"sees" the records you expect. Hoever, it may be better to maintain two
versions of the same query becaue other software may insist on the "*"
and "?"

Another possibility (but apparently increasingly difficult in Word
2007), is to change the way Word connects to Access to DDE instead of
OLE DB. If you really want to do that, in Word 2007, check Office
button-Word options-Advanced-Confirm file format conversion on open
(near the bottom), go through the connection process again, and you
should see an additional Confirm Data Source dialog box. If you see an
entry like "MS Access databases via DDE", select it. If you only see
"OLE DB database files" (typically if you are using a .accdb rather than
a .mdb source), check Show all, then locate and select that DDE option,
and continue. In Word 2003, the option has a similar name under
Tools-Options-General.

2. As far as the constant question about connection is concerned, I
suggest you disconnect the data source from your document (set the type
of the Mail Merge Main Document to "Normal Word Document instead of
Letters,Directory, etc.) , save the document, re-open it and try again.

Peter Jamieson

http://tips.pjmsn.me.uk

On 27/01/2010 16:24, Sue Sweet wrote:
I am using Office2003 and am trying to do a mailmerge using an Access query
as my data list. I filter my query, save& close the query, open my main
document and each time it makes me open the data source and choose the query.
But then no records are returned. I can't figure out if the problem is with
Word or the Access database.

Hope someone can shed some light!!

Thanks

Sue

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
find in mailmerge returns nothing word 2003 crobinson Mailmerge 0 January 5th 10 10:18 PM
mailmerge skipping records...everything looks right Kim Mailmerge 1 November 5th 07 08:52 PM
Importing records containing carriage returns Steve[_2_] Mailmerge 3 February 15th 07 02:55 PM
Mailmerge records Jo Davis Mailmerge 1 November 23rd 06 02:59 PM
Mailmerge same ID records on one page NickKnowsley Mailmerge 2 August 2nd 06 09:25 AM


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