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

x
?
Solved

Crystal Reports 9 Find Bracketed Items

Posted on 2014-12-12
9
Medium Priority
?
139 Views
Last Modified: 2015-02-02
Hello,
      I am attempting to write a report in Crystal 9 that will show all items that are enclosed in brackets, ([ ]) in a memo field. I find that when I try to use Select Expert that the field is not available. I then tried to write a formula with no success. I thought this would be simple as it is only one table that I am looking at.
      Perhaps it would be helpful if I gave the purpose. We create standard work for items that we manufacture. The items call for specific specifications. We enclose these specification call outs in brackets which lets the system know to look in the specification library and automatically assign it the latest revision. I need to get a list of all these specifications that have been enclosed in brackets. ANY help with this would be most helpful.

Thank you
0
Comment
Question by:daskas27
[X]
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
9 Comments
 
LVL 18

Expert Comment

by:vasto
ID: 40496626
What is the type of the field - text, memo ?
0
 
LVL 1

Author Comment

by:daskas27
ID: 40496638
"Show Field Type" says Memo
0
 
LVL 18

Expert Comment

by:vasto
ID: 40496949
That is why it is not working with the formulas. Most likely the database field is of type text. I would create a view and convert the text field. The available types will depend on your database. In SQLServer the corresponding type will be varchar(max length). Then use the view in your report and the field will be available.
0
[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

 
LVL 1

Author Comment

by:daskas27
ID: 40496975
The database is visual FoxPro.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 40497017
Crystal cannot use memo fields in formulas.

How long can the memo fields be?
Are most less than say 1000 or 2000 characters?

You could write a view that extracts the [ ] text from the field

mlmcc
0
 
LVL 1

Author Comment

by:daskas27
ID: 40497100
Yes, less than 1000. I don't know how to write a view.
0
 
LVL 18

Expert Comment

by:vasto
ID: 40497188
In FoxPro view is probably named query
0
 
LVL 35

Accepted Solution

by:
James0628 earned 1500 total points
ID: 40497816
This is something of a shot in the dark, but ...

 You could try creating a formula that just contains that memo field, and then see if you can use that formula in the Select Expert or in another formula.  CR 10 also has some issues with memo fields, and I found that if I just put a memo field in a formula, I could then use the formula in a place (Creating a group?) where I was not able to use the field.

 You could also try using CStr/ToText in a formula to convert the memo field to a "regular" string.  I have no idea if that will work, but it would be easy to try.

 If those things don't work, then you may have to manipulate the data before it gets to CR, as the others suggested.

 James
0
 
LVL 18

Expert Comment

by:vasto
ID: 40498007
You can try also to create a SQLExpression convert the field inside.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

618 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