Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


crystal reports text input from user

Posted on 2014-02-27
Medium Priority
Last Modified: 2014-02-28
Can I setup a way for the user to type in text and it looks at a field, if their text is found then it outputs any instance of that text.

For instance:  They type in tops and it looks at porOrder.stockcode and returns

55 tops
tops 34
Question by:TomBalla
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 101

Assisted Solution

mlmcc earned 1000 total points
ID: 39893041
Yes.  You can setup a report filter based on a parameter.

Create a parameter
  Name - StockCode
   Data type - string

In the record selection
"*" & {?StockCode} & "*" LIKE {porOrder.stockcode}

LVL 35

Accepted Solution

James0628 earned 1000 total points
ID: 39894468
I think you got the test backwards.

{porOrder.stockcode} LIKE "*" & {?StockCode} & "*"

LVL 35

Expert Comment

ID: 39895099
FWIW, if your db is case sensitive and you need the test to ignore the case, like you want "tops" to match things like "STOPS" and "55 Tops", you could change the test to something like:

UpperCase ({porOrder.stockcode}) LIKE "*" & UpperCase ({?StockCode}) & "*"


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question