Spliting up a field

L

Linux Man

Hi

I have a table which has a text field ( variable length) of the from

string1://string2/string3/string4

Is there any easy was using the access builtin functions to extract
string2.?


Thanks..
 
D

Douglas J. Steele

Assuming you're using Access 2000 or newer, you could try using the Split
function to split the string into an array on the / symbols.

Split("string1://string2/string3/string4", "/")(2) would give you string2

(0 would give you string1:, 1 would give you a zero-length string, since
there's nothing between those 2 slashes, 3 would give you string3 and 4
would give you string4)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top