CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Posts
    12

    Report's Control problem

    As, I have shown in my last posted attached file, I have a place for closing balance.

    Closing balance would be opening balance - total debit amount + total credit amount for that particular date.

    This closing balance would be opening for the next date.

    i.e. say user has enter 01/08/2006 and 24/08/2006 in frmTemp in from and to date respectively.

    So, in 01/08/2006 opening balance would be from database i.e. table OPBAL.

    Its closing would be calculated based as i showed the formula above

    Now, according to my report, next date would be 03/08/2006 that comes between above date.

    So, the opening for this date would be closing of 01/08/2006.

    How to achieve this in data report ?
    Last edited by kpj; September 8th, 2006 at 04:11 AM.

  2. #2
    Join Date
    Jun 2002
    Location
    Clane, Ireland
    Posts
    766

    Re: Help with attached project

    Possibly the easiest way, but not necessarily the best way would be to create a temporary recordset with the values you want displayed, and then run the data report ove the temporary recordset which now contains the correct values.

    HTH
    JP

    Please remember to rate all postings.

  3. #3
    Join Date
    Sep 2006
    Posts
    12

    Re: Help with attached project

    Thanks jp140768
    I would try using it. I was also thinking to create a temporory table for it and then using it and then deleting that table once a report is generated.

    Thanks a lot for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured