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

paramaters field leading spaces 1

Status
Not open for further replies.

timscott911

IS-IT--Management
Apr 15, 2010
3
US
I have a table field that has 3 leading spaces.
I want to make a parameter that the user can type in the field without the spaces.
right now if I put in "MT6001" it will produce 0 results, I have to add the 3 leading spaces for the report to produce a result" MT6001" how do I make the parameter add the spaces in front of the user input?
 
hmm perhaps more explanation is in order
the field is a SKU with the following rules
letters must be in caps
must have 3 spaces before SKU

the parameter I want is
can include multiple values( is one of)
here is my current parameter
{riskugrp.sg_skugrup}={?SQL RANGE}
where {riskugrp.sg_skugrup}is the table field and {?SQL RANGE} is my parameter field
 
Have you tried

Trim({riskugrp.sg_skugrup})={?SQL RANGE}

What happens?

Ian
 
Ummm it works?
I had both lines in there which produced nothing, I had my line that just used the parameter then "and" your parameter, I didnt think to just modify my parameter. so the crapi had looked like
{riskugrp.sg_skugrup}={?SQL RANGE}and
Trim({riskugrp.sg_skugrup})={?SQL RANGE}

thanks Mr obvious it was kicking my but.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top