Results 1 to 2 of 2
  1. #1
    mohiahmed is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    23

    splitting an amount

    Hi there , I hope someone has the skills to help me with this problem.

    I am trying to create a receipts database. Lets say my business has a few items you can purchase and lets call them: "Fees", "uniform", "books", "bags" and "experiences."



    If someone came in and paid £2500 for their "fees", bought a "uniform" and also paid for an "experience", I would give only one receipt and on that receipt the total would be £2500. Could I somehow split the the £2500 for this record so that I can see £1500 went on fees, £150 on uniform, and £850 on experiences? The receipt number is the primary key so I don't want to split the data.

    Any ideas how to do this?

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Only way to do this is to use 2 tables 1 for the Receipt Information and 1 for the details of the receipt.

    For example
    Receipt Table
    ReceiptID PK
    Purchaser
    Date

    ReceiptDetails
    ReceiptID
    DetailID
    Product
    QTY
    Price

    Then you link the 2 and sum the qty and price for the receipt.

    This is simplistic to answer your question, but this is the first step.

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

Similar Threads

  1. Calculation of amount boxes
    By visidro in forum Access
    Replies: 4
    Last Post: 03-16-2013, 02:05 PM
  2. Changing Text colour on value amount
    By stu_C in forum Forms
    Replies: 1
    Last Post: 08-08-2011, 06:58 AM
  3. limiting amount of records
    By yaro.kobzar in forum Programming
    Replies: 1
    Last Post: 05-17-2011, 07:01 PM
  4. Replies: 2
    Last Post: 10-25-2010, 10:45 PM
  5. Replies: 9
    Last Post: 07-16-2010, 09:25 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