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

Trimming a Field to be certain amount of characters

Status
Not open for further replies.
Joined
Dec 11, 2009
Messages
60
Location
US
I have a field in my report called jobtitle, I only want it to display 35 characters? How can I achieve this?

Thanks,
 
Code:
SELECT LEFT(JobTitle, 35) AS  JobTitle
....

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
 
or if it's not the first 35 Characters you require:

SELECT RIGHT(JobTitle, 35) AS JobTitle
SELECT SUBSTRING(JobTitle,3,35) AS JobTitle

try each see the differing results

/Nice
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top