Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameter hard coded in SQL statement?

Status
Not open for further replies.

gabster

Programmer
Oct 23, 2001
192
US
IS ti possible to hardcode a parameter name in a SQL statement in CR8?

Something like:

WHERE
Table.Fieldname = {?ParameterName}

Thanks,
Gabi.
 
Maybe I'm wrong in this thought process.

But if you do a record selection of:

Table.Fieldname = {?ParameterName}

it will be a part of your SQL statement.

This way you have a paper trail within Crystal if changes need to be made.
 
I tried this option but CR crashes with no other warnings...

The only thing it sais that "an error log is generated...".

The interesting thing when CR crashes, is that it's very misterious about what caused the crash...
 
To hardcode the parameter in SQL statment you have to write it like this:

Table.FieldName = '{?ParameterName}'

I thing you miss the sigle quote.
 
I tried with single quotes too but in vain. CR crashes.

Thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top