Results 1 to 3 of 3
  1. #1
    Patrick1900 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2021
    Posts
    1

    How to duplicate access records

    Am in need of help with access. I need to program a button which will duplicate all records in a given table containing a value <0 in a specific field
    and then it leaves the field value in the original record to be 0.
    Example;
    I have a table with fields


    ID StudentName Grade Fee AmountPaid Balance Overpayment Term
    1 name1 2 $100 $150 0 $50 Term 1


    I want if any records has a value in overpayment >0 then it should be duplicated while clearing the value in the original record of overpayment field and then changes the term field to term two in the dublicated redord?


    Is this possible?

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,568
    So despite the fact I overpaid in Term1 by $50, you want to show it as an overpayment of $50 in Term2.?

    Normally you just sum charges, and payments and display the difference?, so if I make another overpayment of $50 in Term2 this time, then I will be in credit for $100 and can skip payng for Term3 ?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    If I may embellish that advice just a bit: you do calculations and show results in form or report fields. Generally speaking, one shout not store calculations in tables as you are showing (Balance). Copying records is usually ill advised as well, even if they are from properly designed table fields.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Access Query showing duplicate records
    By andrew.ang8843 in forum Queries
    Replies: 10
    Last Post: 12-08-2017, 02:23 AM
  2. Replies: 2
    Last Post: 12-22-2014, 11:28 AM
  3. Replies: 3
    Last Post: 10-03-2013, 03:39 PM
  4. Access Duplicate Records Help
    By Sohan in forum Forms
    Replies: 1
    Last Post: 09-22-2012, 02:46 PM
  5. Replies: 6
    Last Post: 07-11-2012, 10:13 PM

Tags for this Thread

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