Solved

Crystal Reports 9 Find Bracketed Items

Posted on 2014-12-12
9
127 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
9 Comments
 
LVL 18

Expert Comment

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

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
 

Author Comment

by:daskas27
ID: 40496975
The database is visual FoxPro.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 100

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
 

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 34

Accepted Solution

by:
James0628 earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now