Results 1 to 5 of 5
  1. #1
    Deutz is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    51

    Insert Into Union query

    Hi and thanks in advance,

    I am using Access 2003.

    I am trying to formulate SQL for an INSERT INTO query that UNIONS 6 queries into the table ... but without success.

    This is what I have so far, any idea where I am going wrong?

    INSERT into Revenue
    SELECT * FROM qryRevenue1


    UNION ALL
    SELECT * FROM qryRevenue2
    UNION ALL
    SELECT * FROM qryRevenue3
    UNION ALL
    SELECT * FROM qryRevenue4
    UNION ALL
    SELECT * FROM qryRevenue5
    UNION ALL
    SELECT * FROM qryRevenue6



    Thanks
    Deutz

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Union queries are by definition not updateable.

  3. #3
    Deutz is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    51
    Thanks RuralGuy

    Looks like it will just have to be a two step process.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Here's a good reference link for queries: http://allenbrowne.com/ser-61.html

  5. #5
    Deutz is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    51
    Thanks, I'll take a look at it

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

Similar Threads

  1. INSERT query: insert new data only
    By drh in forum Access
    Replies: 2
    Last Post: 04-04-2014, 05:31 PM
  2. Help with a Union Query
    By Bear in forum Queries
    Replies: 12
    Last Post: 08-14-2011, 05:12 PM
  3. Union Query
    By jlclark4 in forum Queries
    Replies: 3
    Last Post: 02-25-2011, 08:21 PM
  4. Please help me out with union query
    By radicrains in forum Access
    Replies: 1
    Last Post: 10-29-2010, 01:48 AM
  5. Need help with a Union Query
    By jdowdy in forum Access
    Replies: 1
    Last Post: 10-13-2009, 05:24 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