Results 1 to 3 of 3

Thread: Problem1: Data Report is not refresh

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    17

    Problem1: Data Report is not refresh

    Data Report is not refresh until i reload the program

    The following is my code. I have set DE(Data Environment) = Nothing and Invoice (Report Name) = Nothing

    ==============================================
    Code:

    szSql = "select contract, DueDate, Amount, Cname, Csur From contract, ar_sub, customer where contract.custid = customer.custid and contract.contractno = ar_sub.contractno and "
    szSql = szSql & "ar_sub.subid like '" & SubID & "' and "
    szSql = szSql & "month(duedate) like '" & m & "' and "
    szSql = szSql & "year(duedate) like '" & Year(Date) & "' "

    Invoice.Sections("section2").Controls("lblSub").Caption = Sname
    DE.Commands("Invoice").CommandText = szSql
    Invoice.Show
    Set Invoice = Nothing
    Set DE = Nothing

    ==============================================
    Mr.Dave

  2. #2
    Frenzied Member mxnmx's Avatar
    Join Date
    Dec 2001
    Location
    I'm back...now!!!
    Posts
    1,396
    This example might help, I use the following to create parameterized Data reports.

    VB Code:
    1. Load DENREPORT
    2.     With DENREPORT 'Data Environment
    3.     If .rsGroupStat.State <> 0 Then .rsGroupStat.Close 'rsGroupStat is Command Object
    4.     .GroupStat Trim(strGroupID)
    5.     End With
    6.     GroupStat.Refresh
    7.     If GroupStat.Visible = False Then GroupStat.Show

    I hope it helps...
    Can't Remember Birthdays or Important Dates- Never Miss any Important Date(s)

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Posts
    17
    Thank you for your help

    but it's still cannot refresh
    Mr.Dave

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