David Anderson
Registered User.
- Local time
- Today, 21:49
- Joined
- Nov 18, 2007
- Messages
- 84
I'm looking for a VBA function for use in Access 2003 that will let me select a specified number of words from a string (counting from the left), where one or more blank spaces are used to separate each word from one another. The result should only have single blank space separators.
For example, if such a function were called SelectWords then I would want SelectWords("Dog Cat Badger Fox Mouse", 3) to return the result of "Dog Cat Badger".
Any suggestions would be much appreciated.
David
For example, if such a function were called SelectWords then I would want SelectWords("Dog Cat Badger Fox Mouse", 3) to return the result of "Dog Cat Badger".
Any suggestions would be much appreciated.
David