Solved

Crystal Reports 9 Find Bracketed Items

Posted on 2014-12-12
9
130 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:daskas27
ID: 40496975
The database is visual FoxPro.
0
 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

840 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