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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a Parameter field called ?Un 4

Status
Not open for further replies.

sameer11

Programmer
Jun 17, 2003
89
US
I have a Parameter field called ?Unit ( string type) and is a allow mutliple values

If my users enter iscs000 in lower case or mixed case how can I make sure that it gets converted to Uppercase for multiple values befor it query the database. It work for one value when i do this

{tab.unitfield} = uppercase({?Unit})

When I do this i get a error(forgot what error it was something array)

{tab.unitfield} in [uppercase({?Unit})]

Please Help.

Thanks,
Sameer
 
If your database field is all in caps, one of the two following methods should work:

Go to report options and check "Case-Insensitive SQL Data." From what I've read this works for SQL Server, but not for Oracle, and there might be other cases where it does or does not work. So, if necessary, you could use the following method:

I just discovered this, and it does work for multiple, discrete parameter values. Go to field explorer->parameter fields->edit->set default values and at the bottom where it says "edit mask" enter: >CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
where C is repeated until it is >= maximum length of your parameter field. The ">" forces the user's entry to appear as upper case, regardless of whether they are using lower case, mixed cases, etc., as they type it in. Conversely, if your database field was all in lower case, you could use:
<CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

Your record selection can then remain as:

{table.unitfield} = {?Unit}

Also, with parameters, you don't have to use &quot;in&quot; to include multiple values.

-LB
 
Thanks very much guys

I will try it on monday.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top