Results 1 to 2 of 2

Thread: Runtime Data Reports with Condition

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    3

    Exclamation Runtime Data Reports with Condition

    i am using vb6.0 & trying to have Runtime Data Report.The Actual Format is:

    Debit Amt Credit Amt -------Column Headers
    400 -------Debit Entry
    400 -------Credit Entry
    Now, If u willCheck Both D & C Entries are Same So In my Database I Check Which Entry is it & Then Try TO Put the AMt but It Gives ME O/P as
    Debit Amt Credit Amt -------Column Headers
    400 400 -------Debit Entry
    400 400 -------Credit Entry
    My Code Goes Like THis

    If rs(5) = "D" Then
    DataReport1.Sections("VOUCHER_PRINT_Detail").Controls("Text1").DataFi = rs(4)
    'DataReport1.Sections("VOUCHER_PRINT_Detail").Controls("Label14").Caption = ""
    DataReport1.Refresh
    ElseIf rs(5) = "C" Then
    DataReport1.Sections("VOUCHER_PRINT_Detail").Controls("Label14").Caption = rs(4)
    ' DataReport1.Sections("VOUCHER_PRINT_Detail").Controls("Label13").Caption = ""
    DataReport1.Refresh
    End If

    Where rs is the Recordset & Where label 13 & label 14 is for D & C Respectively. & their are two Different Rows in Database for Debit & Credit
    Please Help Me
    Last edited by Paresh; Mar 20th, 2006 at 04:54 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Runtime Data Reports with Condition

    Moved to reporting section

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