Results 1 to 3 of 3
  1. #1
    isnpms is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2010
    Posts
    19

    Copy / Paste some fields

    God Morning.
    I have a little access system with 2 tables, one form and one sub form.
    The main table (tblMain) is for general data: tCod (Key), tName, tAddress, tZip, etc.) and the second table (tblSecond) is for input daily data where some are different (Date(), total value, etc) and others are the same (Name again - get it form main form with default value function - RG, CPF, Bank account, Bank.).
    What I need and I’m trying to do is a way to copy/paste only these value that always repeat and need to be in this second table (for future report need) every time I make a ADD NEW action at this subform.
    I made a query using the fields Name, RG, CPF, BnkAcc and Bank assigning at the Name criteria =[Forms] ![Mainform]![Name] or =[Forms] ![Mainform]![Subform]![Name] (who makes the same work) wondering this could help but couldn’t.


    Is there any way to use, for example, a command button or get or set focus or something else to copy these data from the existing register and pasting them to the new register?
    Case not possible this way, with that query example could it be? I just don’t know how to write it to automatic populate the fields.
    Any help will be very welcome.
    Thank you.
    Ivan Sinigaglia (Brasil)

  2. #2
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    Hi,

    I can't see why you would repeat some fields from your main table in the second one. Apart from repeating the PK of the main table as FK to the related table, each table should only have the fields in it that depend on the PK field of that table (2nd normal form).
    When you want to create a report, just create a query for it that holds all data needed for the report.

    grNG

  3. #3
    isnpms is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2010
    Posts
    19
    Because sometimes it may change but others no.
    I want a way to copy/paste them everytime i need.

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

Similar Threads

  1. Copy and Paste Row (vb)
    By Computer202 in forum Programming
    Replies: 7
    Last Post: 03-28-2014, 01:59 AM
  2. Replies: 2
    Last Post: 06-06-2011, 04:18 PM
  3. Copy / Paste some fields
    By isnpms in forum Import/Export Data
    Replies: 1
    Last Post: 08-25-2010, 07:48 AM
  4. Replies: 5
    Last Post: 12-10-2009, 10:33 PM
  5. Replies: 0
    Last Post: 10-15-2009, 02:08 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