Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...The enviroment is simple, natural and efficient. The members are competent, educated and professionals..."

Geography

Where in the world do Tek-Tips members come from?

Access 2010 Mailmerge to Word Query Dataset EmptyHelpful Member! 

VegasUser (TechnicalUser)
30 Jul 12 14:00
Mailmerge has been working until....

I have a query that is returning a dataset in Access but when I execute the query in the mailmerge function it's empty.

I've checked the querydef in the function to see if it has been truncated but it's not. I can execute the query from the function and get the correct dataset. I've also verified that all the fields in the Word doc match the query fields.

When linking a test dummy doc from Word to the same query there's no data. I've recreated the merge document several times and it still won't work.

I've done hundreds of these and never encountered this problem. Is this an issue wiith Word? Any thoughts?
Thanks!
Helpful Member!  vbajock (Programmer)
31 Jul 12 14:10
Since this forum concerns VBA coding, is there any chance you could post your code?
VegasUser (TechnicalUser)
31 Jul 12 16:09
Thanks for replying vbajock :)

I was fighting with this again today and discovered that the field containing the data I was querying against is a multi-value text field. Therefore, Access could execute the query but Word couldn't interpret it and had no data.

I tried embedding the column in a sub-query but Word still evaluates it as one query, so I'm having to create a temp table.

Then it worked fine!

Thanks again for helping!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close