Results 1 to 2 of 2
  1. #1
    sparkyboy2406 is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    3

    Populate Table with query results

    Hi Guys,




    I have a master table and a calls table.

    I have a field in the master table that i would like to update with the results of the following query

    SELECT calls.guid, master.Name AS customer, Count(calls.guid) AS NoOfCalls
    FROM master LEFT JOIN calls ON master.GUID = calls.guid
    GROUP BY calls.guid, master.Name;

    I need to use an update statement

    but how do i get TimesCustCalled field in the master table populated with the results of the query above using an update statement?

    i have attached my sample database

    Any help is greatly appreciated

    Thanks

  2. #2
    NassauBob's Avatar
    NassauBob is offline Not THAT Green
    Windows Vista Access 2007
    Join Date
    Feb 2010
    Location
    Augusta, GA
    Posts
    61
    Well, is there ONE field from the query you would populate the ONE field in the master table with? Because I know you cannot put the results of any query into another table unless the fields you intend to populate are matched in number and type by the query results.

    In other words, an update query needs to return the same number of attributes (columns) that you intend to update in the table.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-24-2011, 04:11 PM
  2. populate table w/ external data
    By tlittell in forum Programming
    Replies: 2
    Last Post: 02-20-2010, 08:29 AM
  3. Use form to populate a table from another table
    By sammer021486 in forum Forms
    Replies: 3
    Last Post: 09-28-2009, 09:06 AM
  4. Combine Query Results to One Table
    By pr4t3ek in forum Queries
    Replies: 0
    Last Post: 12-19-2008, 06:37 AM
  5. auto populate and table relationships
    By jmarti57 in forum Access
    Replies: 0
    Last Post: 11-09-2008, 09:50 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