Results 1 to 8 of 8
  1. #1
    willmafingerdo is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    108

    updating changed fields and adding new rows..

    Hello,
    I am wondering if i can import a table and have it compare whats on the master table and update any changed fields and add any new records. I was thinking an update query but i dont know if that would capture the new records. The table is used to track promotion dates and those dates can change due to various reasons, so i would need the promotion due date to be updated accordingly. along w/ adding the new names.. I would be running the master report and updating it ever week.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Sounds like a typical batch of transactions to be applied to existing tables.

    Code:
    If  Transaction   = ExistingRecord     Yes==>then Update Exisitng record
       Else =No==>Create new Record

  3. #3
    willmafingerdo is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    108
    Is this something i can do in Access or do i have to do it in VB?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850

  5. #5
    willmafingerdo is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    108
    could you give me some info so i know what to google to find how to do it? like is there a technical name of what im trying to do or anything like that.. i try googling adding records to file w/ updates and i get all kinds of random results

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    This is an old technique from years ago -often called Balanced Line Technique. Used a lot in the "Cobol/PL1 days".
    Here is an article.
    Last edited by orange; 02-12-2020 at 11:51 AM. Reason: spelling

  7. #7
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    Used a lot in the "Cobol/PL1 days".
    Boy, do I remember that. Had to hang 3 tapes and totally re-write the master file to a blank tape as it was being updated. Could take hours for large files.

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    True. I have similar memories (nightmares). The logic of the Balance Line approach is still sound.

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

Similar Threads

  1. Replies: 11
    Last Post: 11-17-2015, 04:47 PM
  2. Replies: 3
    Last Post: 10-08-2015, 01:02 PM
  3. Attachment fields changed to Memo fields
    By jikel in forum Access
    Replies: 5
    Last Post: 07-25-2013, 01:41 PM
  4. Replies: 7
    Last Post: 04-25-2012, 06:25 PM
  5. Identifying Changed Fields in Two Tables
    By novice in forum Queries
    Replies: 1
    Last Post: 12-16-2010, 05:43 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