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

Placing part of a string into a variable 1

Status
Not open for further replies.

Preka

Programmer
May 11, 2004
55
I'm looking for a way (currently working on something in Access) to place part of a string into a variable. The string in question is a filename, and the format is going to be:

TextThatIWant - MoreTextThatIWant - DateAndTimeInfo.txt

I want to put the two seperate "text that I want" blocks into variables for later use. Any ideas?
 
Have a look at the Split function.
You may also consider the InStr and Mid functions.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Split did the trick - thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top