Results 1 to 4 of 4
  1. #1
    sedain121 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2010
    Posts
    2

    Mail Merge w/ data from 2 tables

    Im trying to automate letters sent to different clients with certain job information on it.

    I created two tables one for client info and one for job info

    so the data is seperate, i can search through the job info table for jobs and the client list table for clients

    I created a query to merge the data so i could import it in microsoft word 2007.


    It works fine but the problem is the query is now making duplicates in my client table for all my clients, one for each job #(meaning the client info is repeated for as many different job #'s i have)

    why is the query adding the merged data back to the table? i thought query's were just used to filter data into a mergeable format(i tried to mail merge the two tables but it told me to make a query)

    Is there a better way to do what im trying to do. I want to mail merge two sets of data(the client info table and the job info table(but only one entry from that table)) onto the same page in word.

  2. #2
    jzwp11 is offline VIP
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    What kind of query are you using? Can you post the SQL text?

    Generally if records in the query results are duplicated it is a problem with the join between the tables. I assume that your tables look something like this

    tblClient
    -pkClientID primary key, autonumber
    -txtClientName

    tblJobs
    -pkJobID primary key, autonumber
    -fkClientID foreign key to tblClients
    -jobdescription

  3. #3
    sedain121 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2010
    Posts
    2

    Figured it out

    Figured out why I have duplicates thanks.

  4. #4
    jzwp11 is offline VIP
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Glad you got it worked out!

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

Similar Threads

  1. Mail Merge
    By Nixx1401 in forum Access
    Replies: 1
    Last Post: 02-15-2010, 10:51 AM
  2. Mail Merge document locked when opened from Access
    By retro in forum Import/Export Data
    Replies: 0
    Last Post: 08-14-2009, 03:12 AM
  3. Mail Merge from Access to Word
    By Rachelkm2 in forum Programming
    Replies: 1
    Last Post: 05-29-2009, 02:49 PM
  4. Mail merge
    By grgerhard in forum Forms
    Replies: 0
    Last Post: 04-25-2006, 05:06 PM
  5. Mail Merge problem
    By kfergus in forum Programming
    Replies: 0
    Last Post: 04-24-2006, 01: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