Results 1 to 3 of 3

Thread: [RESOLVED] recordselecttion formula in CR8.5

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    34

    Resolved [RESOLVED] recordselecttion formula in CR8.5

    i have prob in following... i am using VB6/CR8.5/Access Database.
    Dim CrAppl As New CRAXDRT.Application
    Dim CrRep As New CRAXDRT.Report
    Set CrRep = CrAppl.OpenReport("D:\Visual Basic Proj/VatSoft\Wlist2.rpt")
    With CrRep
    'Selection
    .RecordSelectionFormula = "{Wlist2.wlistno} = 2 "

    End With
    wlistno is integer field.
    how do i pass this no using a integer variable??

    Q.2 how can i refresh this report if data does not comeup on report??? at runtime using codes)

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: recordselecttion formula in CR8.5

    VB Code:
    1. Dim CrAppl As New CRAXDRT.Application
    2. Dim CrRep As New CRAXDRT.Report
    3.  
    4. Dim x as Integer
    5.  
    6. Set CrRep = CrAppl.OpenReport("D:\Visual Basic Proj/VatSoft\Wlist2.rpt")
    7. With CrRep
    8. 'Selection
    9. X = 2
    10. .RecordSelectionFormula = "{Wlist2.wlistno} = " & X

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    34

    Re: recordselecttion formula in CR8.5

    Yes That syntex is correct but still i have to press refresh button when i change Wlistno value, I dont understand why?? how can I give refresh command to CR before desplaying it?

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