How can I convert Memo field entries to String data?

I'm using Crystal 8.5 and SQL Server.  I need to print a Bar Code with the contents of the memo field.  The string needs a asterisk on each end for the code 39 scanner to start/stop read.  The formula would be "*"+{}+"*".  This will not work because memo fields cannot be used in formula.  Is there a function I can use to convert the memo to string?  Then allow me to use the output from this formula in my bar code formula?
Tim RaganAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This may be a longshot, but can you use the memo field in a formula by itself?  I haven't used CR 8.5, but CR 10 also had some restrictions when it came to memo fields, and I found that if I put a memo field in a formula, I could use the formula where CR would not let me use the field.  It was like simply putting the memo field in a formula "converted" it to text.

 Another option might be to concatenate the values in a field.  In CR 10, you could create a text field on the report, type the first "*" in the field, drag and drop a text field from your datasource into that report field, then double-click on the report field and type another "*" at the end.  I don't know if you can do that in CR 8.5, or, if you can, it may not allow you to use a memo field that way, but you could give it a try.

 If that doesn't work, and CR 8.5 doesn't have some kind of built-in conversion function, then you may have to do the conversion on the server.  You could use a view or stored procedure, or maybe create a query in CR, that would convert the field to varchar (?), so that CR would see it as text.  Then again, if you're going to do that, it might be just as easy to just add the "*"s to the field in the query, and then maybe the field type in CR wouldn't matter.

You may be able to use LEFT to get the left 250 characters.


If you only need the first 20 or 30 use that number.

If that doesn't work, can you build a view in the database?
If so build one that returns a shorter string


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.