Results 1 to 9 of 9
  1. #1
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131

    display text box with calculated value with related table value.

    I have three Table. I want to create Form as exposed below.
    1. Client Tabe
    Client
    Client_ID Name Address
    61 Naresh Kumar Joshy Bakdhuwa
    62 HARI KANCHANPUR
    63 mohan kanchanpur
    64 shyam sjfla

    2. Limit Table
    Limit Table
    ID Client_ID loan_Date Manual_Account New_Limit Outstanding_Bal
    62 61 2070/05/17 1 12.00
    66 62 2070/05/17 2 100.00
    67 63 2070/05/17 3 10,000.00
    68 64 2070/05/17 4 15,000.00
    3. Txn Table


    Txn List
    ID Txn_Date Manual_Account Principle_Debit Principle_Credit Principle_Balance
    65 2070/05/17 1 5,000.00 0.00
    66 2070/05/17 2 10,000.00 0.00
    67 2070/05/17 2 0.00 60,000.00
    68 2070/05/17 3 60,000.00 0.00
    69 2070/05/17 1 13,000.00 0.00

    4. In form, when I enter Manual_Account, Return Principle_Balance as below of releted Manual_ Account.

    (sum of [Principle_Debit]-sum of [Principle_Credit])=(5000+13000)=18000

    Click image for larger version. 

Name:	FORM.jpg 
Views:	18 
Size:	88.4 KB 
ID:	13676 is it possible Sir? If Yes, Plz help me. Thanking You in Advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Balance should not be saved to table but calculated whenever needed.

    The sum is an aggregate calculation. This is accomplished with a GROUP BY (Totals) query.

    Or you can build a report and use its Grouping & Sorting with aggregate calcs features.
    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.

  3. #3
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    I have tried Dsum function but can't get result may be some query problem. Plz sir send me detail query.

    Thank You sir.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Not DSum. Do an aggregate query using Sum function. Access Help has guidelines on aggregate (Totals) query.
    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.

  5. #5
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    I am new in access so plz send me query. sir, Thank You.

  6. #6
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    I have not any help about aggregate (Totals) query. Plz help. by providing aggregate (totals) query.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Showing aggregate calcs on forms can be tricky. Usually this is done on reports.

    In the form Footer section, try a textbox with expression: =Sum(Principle_Debit - Principle_Credit)
    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.

  8. #8
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    not fulfil my desire. i want to getting sum of total debit minus total credit only with releted manual account which we type in form. Thank You.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The displayed sum will be based on whatever records are included in the form recordset.

    Use the input value to filter the form records. For one method, review: http://datapigtechnologies.com/flash...tomfilter.html
    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.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-30-2013, 06:48 AM
  2. Replies: 7
    Last Post: 07-02-2012, 10:50 PM
  3. Replies: 3
    Last Post: 08-18-2011, 07:31 AM
  4. How do you make a text box display a value from a table?
    By italianfinancier in forum Reports
    Replies: 3
    Last Post: 06-01-2011, 12:15 PM
  5. Calculated Text Box Populating in Table
    By Debbie in forum Access
    Replies: 2
    Last Post: 11-13-2006, 08:02 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