Results 1 to 5 of 5

Thread: [RESOLVED]Selection formula of VB6.0 for crystal report 10

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    17

    Resolved [RESOLVED]Selection formula of VB6.0 for crystal report 10

    How to use selection formula in VB6.0 for the crystal report 10.
    I was using cystal report 6 and used the selection formula as
    .SelectionFormula = "trim({Table1.Branch})='" & cmbBR.Text & "'"
    But for crystal report it is not accepting. Can any guide me how to pass the selection formula(Parameters)

    Selvakumar
    Last edited by kselvakumar_82; Apr 3rd, 2008 at 06:14 AM. Reason: Resolved

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

    Re: Selection formula of VB6.0 for crystal report 10

    What does "not accepting" mean? Are you getting an error?

  3. #3
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Selection formula of VB6.0 for crystal report 10

    Try with :
    Code:
      YourCRObject.RecordSelectionFormula = "Trim({Table1.Branch}) = '" & cmbBR.Text & "'"

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    17

    Re: Selection formula of VB6.0 for crystal report 10

    Thanks for your update on that. can you please clarify the following?

    invalid or unqualified reference is the error im getting when i use .selection formula.

    when i use
    Crviewer1.RecordSelectionFormula = "Trim({Table1.Branch}) = '" & cmbBR.Text & "'"
    im gettting the error as object doesnt suppport this property or method

  5. #5
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Selection formula of VB6.0 for crystal report 10

    You have to set the .RecordSelectionFormula property to the CRAXDRT object that is part of a reference that you have to set in your project :

    Crystal Report ActiveX Designer Runtime Library 10

    Visit the next link :
    http://www.mahipalreddy.com/cr/crcodes1.htm

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