Results 1 to 2 of 2
  1. #1
    KWSMan is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    1

    Union Query to Combine Results from 2 Queries

    Good Afternoon All,



    I am very new to Access and have been tasked with doing a compare. I need to join the results of two queries. Below is the SQL Union query that I have been able to come up with so far. Unfortunately, when I try to run the query I receive an "Invalid SQL Statement; expected 'Delete', Insert', 'Procedure', 'Select', or 'Update'.

    Code:
    SELECT FORM_number, ED_DATE, COMPANY, ST, Source 
    FROM [TblProductWC Without Matching Copy Of Workers Compensation Forms]
    UNION [ALL]
    SELECT Form_Number, Edition_Date, Companies, State, Source
    FROM [Copy Of Workers Compensation Forms Manual Without Matching TblPr];
    Please help.

    Thank you in advance!!!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    For starters, it would be:


    UNION ALL

    ie no brackets.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 09-13-2012, 09:31 AM
  2. How do I combine query results?
    By neha in forum Queries
    Replies: 2
    Last Post: 12-29-2011, 11:30 PM
  3. Combine query results
    By broadm in forum Queries
    Replies: 2
    Last Post: 04-15-2011, 08:37 AM
  4. Replies: 3
    Last Post: 05-21-2010, 03:57 PM
  5. Combine queries results in forms
    By frasilvio in forum Queries
    Replies: 12
    Last Post: 01-10-2008, 01:34 AM

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