August 2, 2010 at 1:04 pm
Hi,
This is for SSRS 2005. How would I return a string value after 6 characters. For example, if I have ABCDEFGHIJK then return GHIJK.
August 2, 2010 at 1:08 pm
Take a look at the SUBSTRING function:
http://msdn.microsoft.com/en-us/library/ms187748.aspx
_________________________________
seth delconte
http://sqlkeys.com
August 2, 2010 at 1:20 pm
August 2, 2010 at 1:21 pm
I don't think the substring function is recognized by SSRS 2005. I get Unrecognized identifier error message.
August 2, 2010 at 1:34 pm
In SSRS, the function is called MID(), but it does the same thing. There is also a RIGHT() and LEFT() function that do approximately the same thing. You probably want to do:
RIGHT(Fields!String.Value, LEN(Fields!String.Value)-6)
August 3, 2010 at 8:07 am
jvanderberg (8/2/2010)
In SSRS, the function is called MID(), but it does the same thing. There is also a RIGHT() and LEFT() function that do approximately the same thing. You probably want to do:
RIGHT(Fields!String.Value, LEN(Fields!String.Value)-6)
Just to elaborate on Old Hands post, the syntax is MID(string,start position,no of characters from start position going towards the right)
August 5, 2010 at 7:12 am
Hi,
We can use report funtion to achive this
String= ABCDEFGHIJ
=Left(Feilds!Name.Value ,6)
OP=EFGHIJ
Thanks,
Veeren.
Thanks & Regards,
Veeren.
Ignore this if you feel i am Wrong. 😉
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply