Results 1 to 2 of 2
  1. #1
    BigCat's Avatar
    BigCat is offline Vice Pres. of Napping
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    Box Canyon
    Posts
    52

    Question Query Import Problem

    I have a large query with over 3500 results in it that I was able to get when I connected to my SQL Server Database and query straight from that.

    I now need to import about 6 of the columns from my query into a table where I can add in some extra columns that need to be entered manually. That is where I get stuck.



    I cannot seem to get the columns I need into my other table.

    I need the data to come from my query so when I have new data in my database I can just update the query which will update the table.

    OR if that is not possibly let me know.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    In general, you would Select the fields you want from your large query and INSERT INTO your new Table. Then as a separate step you would manually add the fields you want to your New Table in Design mode. Then add the data to the new fields.

    Suppose your saved large query was something like.
    LARGEQuery:
    Select field1,field2, field3,field4,field5,field6.....fieldX FROM SomeTable.

    So to put Field2,Field5 and Field6 into your newTable

    INSERT INTO NewTable (Field2,Field5,Field6 )
    SELECT Field2,field5, field6 from LARGEQuery)

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

Similar Threads

  1. Problem with Excel import
    By itsmemike in forum Import/Export Data
    Replies: 3
    Last Post: 04-04-2011, 09:25 PM
  2. Import problem
    By rickscr in forum Import/Export Data
    Replies: 0
    Last Post: 03-28-2011, 05:09 PM
  3. Repetitive Import Problem.
    By jasonbarnes in forum Import/Export Data
    Replies: 5
    Last Post: 02-18-2011, 11:09 AM
  4. Saved Import in Query
    By Kimbertha in forum Queries
    Replies: 1
    Last Post: 10-21-2010, 07:21 AM
  5. Import Excel sheet with query
    By tpcervelo in forum Queries
    Replies: 1
    Last Post: 08-03-2010, 07:10 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