Results 1 to 10 of 10
  1. #1
    Pure Salt is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Apr 2014
    Posts
    60

    Copy data from one table to another when for a specific record when a form field has been updated


    I have totally confused myself & now can't get my brain in gear!!

    I have a table with 'Received Date'. This is linked to another table by 'Purchase Order'.

    When I enter the 'received date' in my form, I would like it to automatically update a different table.

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    How is this data related to one another? what is the reason for the update? Do you have a screenshot of this relationship maybe? What info do you want to update?

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    Append query.
    the source ffield uses the key to get the record,then add to the target table.

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I suspect he wont need to move any data at all. If the reason for separating it is just that (to have it separated) I'm sure you can do that on record level and have them all in one table.

  5. #5
    Pure Salt is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Apr 2014
    Posts
    60
    Thanks ranman256. Can you give me some more info as this is where I'm getting stuck.

    I created an append query to update the record I was in - seemed to work fine, but when I checked the table the data hadn't transferred.

  6. #6
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    append query's don't update they add new records. did you press run on the append or view?

  7. #7
    Pure Salt is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Apr 2014
    Posts
    60
    Sorry, did say I had got myself into a muddle!!

    Its an update query (not append). It tells me I'm about to update a record, but when I check it hasn't.

  8. #8
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    append will add a new record to the new table If that's what you want. or is it a specific field you want to update?

  9. #9
    Pure Salt is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Apr 2014
    Posts
    60
    It's a specific record I need to update

  10. #10
    Pure Salt is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Apr 2014
    Posts
    60
    Sorted - run the query back to front & it works!!!

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

Similar Threads

  1. Replies: 3
    Last Post: 11-28-2016, 03:17 PM
  2. Replies: 4
    Last Post: 01-20-2015, 12:55 PM
  3. Replies: 6
    Last Post: 11-15-2012, 05:38 PM
  4. Replies: 5
    Last Post: 02-21-2012, 07:33 AM
  5. Replies: 3
    Last Post: 03-23-2011, 11:37 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