Hey, you're in luck...I just asked this question last week
and it worked for me!
Use the Left function:
Example:
Left([Table.Field], 50)
or
if all else fails you can go into your database and create
a new query where you limit that field to 50.
Here's my working code...hope it helps!
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
(I used the new "trimmed" field name "shortdesc" in my query.)
SELECT Products.Category, Products.ProductType,
Products.ProductName, Left([Products.Description],225) AS
shortdesc
FROM Products
WHERE Products.Category LIKE '%Specials%'
ORDER BY Products.ProductType DESC , Products.ProductName;
-----Original Message-----
is there an sql function I can use to return only the first 20 characters of
a field? Basically I am looking for an SQL equivalent to the VBA Left()
function.
anyone?
.