Results 1 to 6 of 6
  1. #1
    shabbaranks is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    162

    Copying table contents from one table to another using filter?

    Hi all,



    I have two tables one is linked to a spreadsheet and the other isnt. What I am trying to do is import the table's data which is linked to the spreadsheet to the table that isnt linked but only import the fields which contain perticular content in a column.

    Can anyone shed some light on how I achieve this please?

    Thanks
    Shabba!!

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Just copy the data into a temporary table, then

    use an update query to get the fields which you need.

  3. #3
    shabbaranks is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    162
    So Ive created a query on the linked table to show the criteria Im after - how do I then get that across to my other table?

    Thanks

  4. #4
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Can you change the query to an 'update' query?

    Quote Originally Posted by shabbaranks View Post
    So Ive created a query on the linked table to show the criteria Im after - how do I then get that across to my other table?

    Thanks
    If you have a query that is giving you the info that you want to append into the other table, then, in design view (Access 2007) you can convert a Select query to an Update query.

  5. #5
    shabbaranks is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    162
    Im not sure I want to append the data though - as wouldnt this give me duplicates? I would only want to add data which isnt on the table already.

  6. #6
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    You could run a delete query to get rid of the duplicates

    Quote Originally Posted by shabbaranks View Post
    Im not sure I want to append the data though - as wouldnt this give me duplicates? I would only want to add data which isnt on the table already.
    either before or after the update. You might set up a macro to handle this.

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

Similar Threads

  1. Categorizing table contents
    By Alaa Wasfy in forum Database Design
    Replies: 1
    Last Post: 11-07-2011, 02:41 AM
  2. Replies: 3
    Last Post: 10-24-2011, 08:13 AM
  3. Replies: 1
    Last Post: 06-08-2011, 02:58 AM
  4. Use VBA to copy table contents to the clipboard?
    By Deutz in forum Programming
    Replies: 3
    Last Post: 10-21-2010, 10:59 PM
  5. Distribute table contents evenly
    By arfaha in forum Access
    Replies: 0
    Last Post: 11-14-2009, 02:32 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