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

Limiting characters returned in query results

Status
Not open for further replies.

rockyroad

Programmer
Feb 22, 2003
191
US
Hello,

Does anyone know of a way (function etc) to limit the number of characters returned in a query? I want to use say the first 50 characters from a Description column on SQL query, to use in a basic search results template. I know that with Verity searches, this is something that can be set... any ideas on how to accomplish this with a simple SQL query?

Thanks Much,

RR
 
It is possible to use some VBA functions in queries. so you can do it by setting the content of your query field as follows.

shortDescription: left$([tablename].[description],50)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top