Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Oracle Commands and String Parameters

Oracle Commands and String Parameters

Oracle Commands and String Parameters

I have built a report (CR2013) with a command on Oracle 11.

All working fine with exception of string Parameters.

I can use the parameter builder inside the command function box to add in parameters and they work fine for Numbers and dates. However, when I try to add a string parameter I get an error.

It seems that if I add a where clause such as

Where StringField = {?StringParam}

If string parameter is say EUR, instead of creating SQL

Where StringField = 'EUR'

it creates

Where StringField = "EUR"

which causes an error.
Am I doing something wrong, is there a work around or is this a bug in the Crystal Command/ Oracle interface.

Thank you


RE: Oracle Commands and String Parameters

Hi Ian,

I'm not familiar with CR2013, but in earlier versions, you need to use single quotes around a single value parameter created in a command, as in '{?string}'. If you are using a multi-value parameter, I think the quotes need to be omitted though.

If this doesn't help, can you show a sample of your command?


RE: Oracle Commands and String Parameters



Changed where clause as you suggested and it works fine. Not just a CR2013 issue I have a client still on Version 9 and had same problem.

and ('{?Currency}' = 'ALL' or CURCODE = '{?Currency}')


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close