Query Left - limit by characters but bring whole word

JoeAccessHelp

New member
Local time
Tomorrow, 04:54
Joined
Oct 14, 2016
Messages
2
Hi Access experts,

If there a function that would limit the returning data by the number of characters but still bring back the nearest whole word.

I'd imagine doing this on excel I would use a mixture of LEFT LEN & SEARCH. However, I cannot figure this one out on Access.

e.g. Description column has 'Singapore Style Sofa with local fabric' I want to limit to 18 Characters but want to return the whole word ('Sofa' no just 'So')

Any help would be greatly appreciated

Thanks
Joe
 
no function. It would take some vb programming.
 
Use functions left and instr like:
Code:
Left([yourfieldname];InStr(18;[yourfieldname];" ")-1)
Depending on country settings replace ";" by ",".
 

Users who are viewing this thread

Back
Top Bottom