[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 709
  • Last Modified:

Crystal Report Selection Formula Button


Is it possible to have a button on my VB form that modifies the crystal report selection formula (not the sql but the select expert filter formula)

All I really want is that when I click the button the following filter is applied :
{projects.stage} <> "Completed"
If I click it again : {projets.stage} = "Completed"

Is it possible?
1 Solution
How are you calling the reports?
The method and APIs used will control how you pass the formula.

You can pass a selection formula to the report.  When you change the formula you will have to refresh the report for the change to take effect.

One easy method would be to PUSH the data to the report from the application.  In that method the application has full control over the data passed

See eric moreau's articles


Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
One of the 3rd-party Crystal Report Viewers listed at http://kenhamady.com/bookmarks.html provides that functionality.
If a parameter that has only two possible values is placed on the report layout, each click on it flips it to the other value.

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now