Results 1 to 7 of 7
  1. #1
    UTS is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Downunder
    Posts
    17

    Mail Merge data source queries missing

    I have seen this in earlier versions of access (currently using 2010) but cannot remember how I solved it.



    Creating a Word mail merge using an access query as the data source. When pointing to the data sources, all tables are there, but some queries are not listed.

    Curiously, the unlisted ones are those that prompt for user input. And, yes, it's one of those I need to access.

    Any ideas?

    Cheers,

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Test with a fixed value in place of the input prompt. Does the query show? That should reveal if prompts are the issue. I almost never use input parameters in queries and I NEVER use parameter prompts. Too hard to validate input and apparently has other issues. I have users provide input on a form and then usually use the WHERE argument of DoCmd.OpenForm[OpenReport] method.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    UTS is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Downunder
    Posts
    17
    Quote Originally Posted by June7 View Post
    Test with a fixed value in place of the input prompt. Does the query show?
    Yes it does. However, this appears to be a shortcoming of Office 2007/10 where merging Word with a parameter query is near on impossible.

    I have wasted countless hours trying to get something to work with 2007/10 that worked perfectly in Office 2000, but now seems bigger than Ben Hur!

    All I want is a button on a form that when clicked, the user is prompted for a date, and then a bunch of letters appear on the printer. That's all.

    Cheers,

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Why Word merge? Will an Access report serve purpose?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    UTS is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Downunder
    Posts
    17
    Quote Originally Posted by June7 View Post
    Why Word merge? Will an Access report serve purpose?
    That would be OK for the envelope labels, but the letters are form letters i.e. fields scattered among the text. So I think Word would be best for the output. (Unless there is a form letter report in Access I am not aware of, that is)

    Cheers,

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    So the letter body is boilerplate text and the variable info is all data in Access tables? An Access report could be set up to do this. Just a matter of textboxes that concatenate static text with fields of report RecordSource.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    UTS is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Downunder
    Posts
    17
    Sounds painful, but I will give it a go.

    Cheers,

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Mail Merge
    By sakhtar in forum Access
    Replies: 8
    Last Post: 09-20-2020, 09:10 AM
  2. CrossTab Queries data source to Excel?
    By Shakenaw in forum Queries
    Replies: 0
    Last Post: 07-05-2011, 08:26 AM
  3. Mail Merge w/ data from 2 tables
    By sedain121 in forum Import/Export Data
    Replies: 3
    Last Post: 06-30-2010, 09:43 AM
  4. Mail Merge
    By Nixx1401 in forum Access
    Replies: 1
    Last Post: 02-15-2010, 10:51 AM
  5. Mail merge
    By grgerhard in forum Forms
    Replies: 0
    Last Post: 04-25-2006, 05:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums