Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8504427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:01:39+00:00 2026-06-11T02:01:39+00:00

I am working on a Crystal Reports in Visual Studio 2010 and I have

  • 0

I am working on a Crystal Reports in Visual Studio 2010 and I have a variety of different parameters and prompts for the user to filter out the specific data they want. For example, I have a parameter for Account and a parameter for Product Name dynamically populated. By default, if a user selects a filter for each of these parameters (account A and product B for example) a logical AND is performed. Only rows containing account A and product B are returned.

Is there a way to make this behave as an OR or an AND (user specifies?) So I can return all rows for account A OR product B

I know that it would be easy to change my formulas to treat this as an OR but what I would really like is for the user to be able to somehow specify whether or not the parameter should be treated as an AND or an OR.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:01:41+00:00Added an answer on June 11, 2026 at 2:01 am

    If I’m understanding you correctly, you can pass a third string parameter in, call it {?Logic}, which contains either “AND” or “OR”, and from there you can do:

    IF {?Logic} = "AND"
    ' Do your AND code here
    ELSE
    ' Do your OR code here
    

    I realize you’re basically repeating the query, once using AND and once using OR, but as long as the query isn’t too cumbersome, this might be the cleanest way to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with Crystal Reports in VB.NET in Visual Studio 2005. I have a
I'm working in visual studio 2010 and have included a crystal report in the
I am using Crystal Reports 13_0_2 in C# Visual Studio 2010. Everything is working
I am working on Crystal Reports for Visual Studio 2005. I need to change
I'm designing a report using Crystal reports for Visual Studio 2010. In my report
I am using the Crystal Reports designer that came with Visual Studio 2008. My
Crystal reports isn't working on different servers because they use different connection strings and
I have a Crystal Reports project that I am working on where I need
I am a Crystal Reports developer and I have always been working with Oracle
I am a Crystal Reports developer and I have always been working with Oracle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.