Results 1 to 10 of 10
  1. #1
    Ihthisham is offline Novice
    Windows 10 Office 365
    Join Date
    Jul 2021
    Posts
    10

    Post Permenant Filed

    Balance: (SELECT SUM([InvoiceAmt]-[PaymentAmt])
    FROM
    tblTrans WHERE
    tblTrans.Date<=btblTrans.Date
    AND tblTrans.TnxNo<=btblTrans.TnxNo
    AND tblTrans.CustomerID=btblTrans.CustomerID)





    Condition is work & Getting the correct figure, But Cannot use its for report coz it's not a permanent field

    Pls help me to Correct the cording to keep this is a permanent field

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Why not? Calculated field in query should be available to report.
    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
    Ihthisham is offline Novice
    Windows 10 Office 365
    Join Date
    Jul 2021
    Posts
    10

    Post Permenent Fiels - " Balance "


  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    So are you trying to do a running sum? Maybe instead of subquery, use RunningSum property of textbox. If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    Ihthisham is offline Novice
    Windows 10 Office 365
    Join Date
    Jul 2021
    Posts
    10

    RuningSum

    Click image for larger version. 

Name:	screen shot - after create report.PNG 
Views:	17 
Size:	45.6 KB 
ID:	45739Click image for larger version. 

Name:	Capture- report viewing.PNG 
Views:	17 
Size:	37.9 KB 
ID:	45740Running Sum.zipRunning Sum.zip

    Pls Kindly Record or Runsum function for this cording

    Balance: (SELECT SUM([InvoiceAmt]-[PaymentAmt])
    FROM
    tblTrans WHERE
    tblTrans.Date<=btblTrans.Date
    AND tblTrans.TnxNo<=btblTrans.TnxNo
    AND tblTrans.CustomerID=btblTrans.CustomerID)

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    As I said, use RunningSum property.

    Report RecordSource:
    SELECT Customer.*, tblTrans.* FROM Customer INNER JOIN tblTrans ON Customer.CustomerID = tblTrans.CustomerID;

    Expression in textbox:
    =[InvoiceAMT]-[PaymentAMT]

    Textbox RunningSum property set to Yes.
    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.

  7. #7
    Ihthisham is offline Novice
    Windows 10 Office 365
    Join Date
    Jul 2021
    Posts
    10
    Tks For your effort,

    My Access file was attached, Can you pls make the cording for me, Im very beginner to Access,

    I hv try with coping your cording , but didt work.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Well, I described the 3 simple things I did to your db. What exactly did you do? What does "didn't work" mean - error message, wrong result, nothing happens?
    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.

  9. #9
    Ihthisham is offline Novice
    Windows 10 Office 365
    Join Date
    Jul 2021
    Posts
    10
    Quote Originally Posted by June7 View Post
    Well, I described the 3 simple things I did to your db. What exactly did you do? What does "didn't work" mean - error message, wrong result, nothing happens?
    Error message,

    is its possible to edit my db Pls ?

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You should be able to accomplish these 3 simple changes. Step by step what I did.

    1. opened your database

    2. opened Running Balnce2 report in design view

    3. changed RecordSource property to SQL statement already provided

    4. changed ControlSource of Balance textbox to =[InvoiceAMT]-[PaymentAMT]

    5. changed RunningSum property of Balance textbox to OverGroup (sorry, before I said change to Yes)
    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: 1
    Last Post: 10-08-2019, 07:40 AM
  2. Linking three filed to one
    By LukeJ Innov in forum Access
    Replies: 6
    Last Post: 04-25-2013, 12:40 PM
  3. Sum one filed based on its contsest
    By BorisGomel in forum Access
    Replies: 2
    Last Post: 03-29-2012, 03:01 PM
  4. Query: Two tables With Yes/No Filed
    By Judasdac in forum Queries
    Replies: 6
    Last Post: 10-17-2011, 12:24 AM
  5. Sum of a categorized filed
    By Costa in forum Reports
    Replies: 0
    Last Post: 02-24-2010, 07:34 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