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

Cutting a string in Access

Status
Not open for further replies.

drimades

IS-IT--Management
Nov 8, 2004
221
MK
How can I transform a string of the form "firstword secondword thirdword" into 3 strings "firstword", "secondword", "thirdword
 
Have a look at the Split function.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
It's ok now. It fills the array, but apriori I don't know how many elements it has?!
 

Code:
WordCount = Len([YourString]) - Len(Replace([YourString], ",", ""))+ 1

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
After the Split function you may use the UBound function.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top