Results 1 to 7 of 7
  1. #1
    asilva is offline Novice
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    4

    Need appending help?

    Hi everyone,



    I am trying to append about 7 huge(400k rows) database tables into one 'master' table but it's not working. The tables are all formatted with the same column names but I keep getting the "duplicate output destination" error and I'm not sure what's going wrong. Any tips for a access noob?

  2. #2
    asilva is offline Novice
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    4
    Any idea anyone?

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    What is the SQL of your query? It sounds like a field is repeated.

  4. #4
    asilva is offline Novice
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    4
    This is the SQL for the Query and it states that there is too many fields defined?

    INSERT INTO Master
    SELECT H1B_efile_external_FY02_web_1.*, H1B_efile_external_FY03_web_1.*, H1B_efile_external_FY04_web.*, H1B_FY05_Efile_External.*, H1B_efile_FY06.*, H1B_efile_FY07.*, H1B_efile_FY08.*
    FROM H1B_efile_external_FY02_web AS H1B_efile_external_FY02_web_1, H1B_efile_external_FY03_web AS H1B_efile_external_FY03_web_1, H1B_efile_external_FY04_web, H1B_efile_FY06, H1B_efile_FY07, H1B_efile_FY08, H1B_FY05_Efile_External;

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Presuming each table has Field1, Field2 and Field3, that's going to produce

    Table1.Field1, Table1.Field2, Table1.Field3, Table2.Field1, Table2.Field2, Table2.Field3,...

    not

    Table1.Field1, Table1.Field2, Table1.Field3
    Table2.Field1, Table2.Field2, Table2.Field3

    Without joins, you'd also get a Cartesian product, but I suspect that's the least of your problems. I suspect you want a UNION query to stack the data from those various sources, and base your append query on that.

  6. #6
    asilva is offline Novice
    Windows 7 Access 2007
    Join Date
    Feb 2010
    Posts
    4
    Quote Originally Posted by pbaldy View Post
    Presuming each table has Field1, Field2 and Field3, that's going to produce

    Table1.Field1, Table1.Field2, Table1.Field3, Table2.Field1, Table2.Field2, Table2.Field3,...

    not

    Table1.Field1, Table1.Field2, Table1.Field3
    Table2.Field1, Table2.Field2, Table2.Field3

    I believe so?

    Without joins, you'd also get a Cartesian product, but I suspect that's the least of your problems. I suspect you want a UNION query to stack the data from those various sources, and base your append query on that.
    I'm not sure what a Union query will do for me... How about this, how can I change the data type in a field of 400k+ data points? My computer states that it doesn't have enough memory to do so?

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    What are the fields in Master and one or two of the others?

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

Similar Threads

  1. Replies: 3
    Last Post: 02-08-2010, 09:00 AM
  2. Appending to a Combo Box
    By cotri in forum Forms
    Replies: 5
    Last Post: 01-28-2010, 02:58 PM
  3. Appending a table with external script
    By farva in forum Import/Export Data
    Replies: 0
    Last Post: 11-09-2009, 12:12 PM
  4. Appending Records to tables with relationships
    By RubberStamp in forum Import/Export Data
    Replies: 0
    Last Post: 12-14-2008, 06:52 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