Results 1 to 5 of 5
  1. #1
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    Is there an "offset" function in Access like in Excel or something similar I can do?

    I have a list of customers' invoices. From time to time they pay an odd amount which an overpayment is applied to another balance, then perhaps they get another invoice after that. Anyway, the total due is correct, but the line item is not...which will drive people crazy believe it or not. I've attached an image for reference. In this case I want to figure out how I can removed the $20.62 and the -$20.62.
    Click image for larger version. 

Name:	forumquestiononbalances.JPG 
Views:	22 
Size:	35.1 KB 
ID:	34714




    Thank you in advance, I hope everyone is enjoying their summer!

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    I understand your problem but I'm not sure I understand your question.

    Are the payments recorded in the invoice table?
    Maybe it would be better to have a separate payments table with a payment details child table. Each payment detail is associated with one invoice and has a the dollar amount applied to that invoice. An invoice has many payments. A payment could have many invoices linked through payment detail. Are you in position where you can even modify the table designs?

  3. #3
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Quote Originally Posted by kd2017 View Post
    I understand your problem but I'm not sure I understand your question.

    Are the payments recorded in the invoice table?
    Maybe it would be better to have a separate payments table with a payment details child table. Each payment detail is associated with one invoice and has a the dollar amount applied to that invoice. An invoice has many payments. A payment could have many invoices linked through payment detail. Are you in position where you can even modify the table designs?
    The payments are recorded in an invoice table (debits and credits) and in a payment table for balancing. Yes, I can make design changes to the tables. Thanks for taking the time :-)

  4. #4
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    I'm not an accountant, book keeper, or professional access developer... Just so we're clear. Hopefully a pro will step in here and let both OP and I know whether what I'm suggesting below is a good idea or not.

    The model I suggested in post #2 is in fact very similar to a invoice & payment model I'm using in an application I'm building now. Here is a simplified image of the table relationship I'm talking about:
    Click image for larger version. 

Name:	bb1.png 
Views:	15 
Size:	7.7 KB 
ID:	34716

    An [invoice] can have many [Invoice_Payments], the payments of an invoice equals the SUM of it's related [Invoice_Payments].[PaymentAmount] records.

    A single [Payment] from a customer is broken up into smaller [Invoice_Payments]. [Payments].[AuditAmount] = Sum of it's related [Invoice_Payments].[PaymentAmount], this is for data entry accuracy purposes. These business rules would be enforced in your form's code.

    From your post #3 it seems to me like all you would need to add to make this work is the Invoice_Payment junction table.

    This approach will obviously require a little more work on building a user interface.

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I am an accountant and your principle is fine.

    There are a number of ways this can be done depending on the nature of the business - for example payments may be assigned to invoice lines rather than the invoice header. Or overpayments may be left unassigned (to an invoice) - e.g. and when there aren't any more invoices? If this can happen, the relationship between invoices and invoice payments cannot be enforced - alternatively you cannot have a rule which says the sum of the invoice payment amounts must equal the audit amount (which is a bad idea). Also in the UK (don't know about elsewhere) companies can elect for a simpler VAT payment system where VAT is not accounted for and due until the payment is made - so VAT accounting rules would need to be applied.

    You would also normally have another join (not necessarily a relationship) at a higher level between payee and customer to ensure you do not assign a payment to the wrong customer.

    It can get complicated and normally these things are handled within an accounting package so make sure you know exactly what is required.

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

Similar Threads

  1. Suppress "Requery" and/or "Repaint" when running function
    By GraeagleBill in forum Programming
    Replies: 3
    Last Post: 12-08-2017, 12:04 AM
  2. Replies: 3
    Last Post: 04-20-2016, 02:50 PM
  3. Replies: 1
    Last Post: 07-10-2015, 06:33 AM
  4. Replies: 7
    Last Post: 12-21-2014, 08:21 PM
  5. Replies: 2
    Last Post: 11-04-2011, 02:45 AM

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