Results 1 to 3 of 3
  1. #1
    donalexander is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    2

    Copy certain fields within a row and paste to another record in ms access 2010


    I am using MS Access 2010 and I am trying to figure out how to copy a field(s) to another like record. For example I have simple split-form that contains detail items purchased (product number, item purchased, cost, etc). I have a check box call "chkApproved" and date box called "Approved Date". The user have a choice to select the invoice number, once selected the invoice number (there maybe anywhere from one or 2 to 4 rows based from the same invoice number). The manager will go to the first record and check the "chkApproved" and date is automatically updated as today's date (Approved Date). This is fine if there is only one row, but when you have the same invoice number with 2 to 4 rows the user has to go to each row and check the box. I want to somehow automatically populate the rest of the rows within the same invoice number I don't need to create a new record only updating the existing records. If anybody can point to me the right direction or tip I will be appreciated. Thank you in advance.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,611
    If all related records should be the same date value, why have this in the detail table, why not in the master Invoice record? Either the Invoice is approved as a whole, including it's related detail records, or it's not.


    Options:

    1. run an UPDATE sql action

    2. run code that will move to each record and set the field value, this can be done with the form's RecordsetClone object
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    donalexander is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    2

    Cool

    Quote Originally Posted by June7 View Post
    If all related records should be the same date value, why have this in the detail table, why not in the master Invoice record? Either the Invoice is approved as a whole, including it's related detail records, or it's not.


    Options:

    1. run an UPDATE sql action

    2. run code that will move to each record and set the field value, this can be done with the form's RecordsetClone object


    Thanks for the tip. It helped

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

Similar Threads

  1. Copy paste from CSV to Access 2010
    By mschmucker in forum Access
    Replies: 1
    Last Post: 12-16-2011, 04:33 PM
  2. Replies: 10
    Last Post: 03-21-2011, 02:46 PM
  3. Copy/paste to new record.
    By xbox1513 in forum Forms
    Replies: 1
    Last Post: 02-23-2011, 04:52 PM
  4. Copy / Paste some fields
    By isnpms in forum Access
    Replies: 2
    Last Post: 08-25-2010, 10:13 AM
  5. Copy / Paste some fields
    By isnpms in forum Import/Export Data
    Replies: 1
    Last Post: 08-25-2010, 07:48 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