How do I create a query which displays dots (....) after a certain number of characters within the field

Posted by Marchese Il Chihuahua on Stack Overflow See other posts from Stack Overflow or by Marchese Il Chihuahua
Published on 2014-01-18T23:01:02Z Indexed on 2014/06/01 15:28 UTC
Read the original article Hit count: 144

I would like to create a query on a field which after a certain number of characters adds/displays a number of dots to show the user that there is additional text to read. At the moment there is a syntax error using the following code in which it doesn't like the "Left" instruction:

X:IIF(len(description) > 5, Left(description, 5) & "....", description)

Note: "X" is what i am naming the field 'description' in my query screen in Access

© Stack Overflow or respective owner

Related posts about ms-access

Related posts about access-vba