Results 1 to 4 of 4
  1. #1
    ezybusy is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2015
    Posts
    119

    Problem with continuous form

    Hi everyone, Kindly have a look at the following relationship diagram




    Click image for larger version. 

Name:	a.PNG 
Views:	15 
Size:	8.7 KB 
ID:	37969

    and tell me if it is possible to have a continuous form displaying as follows:

    ID DATE CLIENT QTY PRICE Amount Due Total Paid Balance
    1 03/05 John 5 100 500 300 200
    2 03/05 Alice 3 300 900 0 0
    3 03/07 Alan 8 400 3200 0 0
    4 03/08 Peter 3 200 600 400 200

    Where order with ID 2 and 3 have not been paid yet (don't exist in OrdersPayments table).



    EXPLANATIONS:

    I actually want the continuous form to display the " ID - date - client - qty ordered - price - amount due - Total Paid - Balance to be paid " for all orders.

    * The problem is, since some orders have not been paid yet (Don't exist in OrdersPayments table) i can't get all orders listed; which is normal.
    So What i want to do is set the [total paid] and [balance to be paid] to zero (0) for those orders that are yet to be paid.

    I have attached a sample db, kindly have a look at it to better understand what i mean.Orders List sample.zip

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    1. use a left join between orders and orderspayments instead of an inner join
    2. you can then calculate your balance as

    amountdue-nz(totalpaid,0)

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You receive multiple payments and associate them with specific order (as opposed to just client Account).

    This sort of data summary is best done on report. Textbox on report has a RunningSum property.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    ezybusy is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2015
    Posts
    119
    Thank you Ajax. Worked

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

Similar Threads

  1. Replies: 2
    Last Post: 11-09-2016, 05:54 PM
  2. Replies: 2
    Last Post: 01-01-2014, 02:10 PM
  3. Continuous Form With Checkbox VB Problem
    By WhiskyLima in forum Access
    Replies: 4
    Last Post: 11-25-2013, 08:25 AM
  4. Yet another continuous form problem...
    By DarrenUD in forum Forms
    Replies: 3
    Last Post: 04-02-2013, 11:33 AM
  5. Continuous Form Totals Problem
    By burrina in forum Forms
    Replies: 2
    Last Post: 02-22-2013, 02:35 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