Results 1 to 6 of 6
  1. #1
    Kwizard is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    3

    how to deduct order price from prepaid credit value?

    Hi guys, I'm new to access...Very new.

    I've been creating a cash register, that has the following tables:

    Customer

    Credit



    Order_main

    Order_sub

    Products.

    I've gotten so far that I can set up and order, consisting of several products, choosing the customer from a dropdown list and display the subtotal of the order.

    But I can't, for the love of god, figure out how to deduct the subtotal from the credit value and get it updated.

    if someone could help me with a step-by-step guide, I'd really appreciate it.

    but I need it to be very low-tech explanations...like I said: I'm very new to access

  2. #2
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    I assume you have a form.
    In a text box record source =sum([credit] -[subtotal])

    If you are still having problems with this upload you database.
    Dale

  3. #3
    Kwizard is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    3
    Exellent, ty.
    ok, now I've gotten the cost field to deduct from the credit value, but how do I get it to update with the new credit?

  4. #4
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    Well I don't know.
    I had this problem when I wrote a database that involved debt and payments.
    I made a query that added all the debt the person had accrued and subtracted all the payment they had made.
    Subtracted total payments from the total debt.
    2 tables. Debt and Credit.


    Dale

  5. #5
    Kwizard is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    3
    ok, I have the Debt and Credit tables, and the Query, now I need to figure out how to add the total salesprice from the order to the debt table.
    the order form consists of an "order" table and "order_sub" table (that connects to the "Goods" table) and the total price value is a calculated field in the "order_sub" table.

  6. #6
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    You may get some ideas from this free data model that introduces "Transaction". Somewhere in your setup I think you match Orders to Payments, and you can determine a Balance. Debt and Credit seem to be further abstractions of Orders and Payments.
    I'm not an accountant and the best advice I can offer is :

    Identify the entities and relationships as best you can (can be done with a piece of paper and pencil)
    Set up some test data,(and your expected outcomes) and test against your evolving data model. Whenever you have some issue/anomaly figure out if it is the test data, the model, or something else. Rationalize every issue and adjust until the model satisfies the test data.... Then build your database.

    The free model at http://www.databaseanswers.org/data_...king/index.htm There are other models at
    http://www.databaseanswers.org/data_models/index.htm that may help , but I couldn't find one quickly that dealt with Invoices and Payments and Credit.

    Good luck.

    Note: There is a thread that is dealing with AdvancedPayment that you may wish to read --it may have similar concepts to your issue and may offer some new ideas.
    see https://www.accessforums.net/databas...ign-35189.html

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

Similar Threads

  1. Deduct sell products from receiving list
    By Georgi in forum Queries
    Replies: 4
    Last Post: 05-22-2013, 01:55 PM
  2. Calculate Debit and Credit
    By naks in forum Access
    Replies: 11
    Last Post: 05-08-2013, 02:34 PM
  3. Replies: 5
    Last Post: 01-05-2013, 04:53 PM
  4. running sum for debit-credit in subform
    By roshanzarmal in forum Queries
    Replies: 1
    Last Post: 09-29-2011, 09:37 PM
  5. Credit Card Info, Where?
    By mastromb in forum Access
    Replies: 3
    Last Post: 05-26-2010, 12:37 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