query using Left function

T

tgwarrior

I need to query a hyperlink field and only result PART of the URL.
e.g. I have many LONG URLs (http://www.abc.com/doc/part/one/x.html) I
want to query so that I ONLY get the first part of the URL
(http://www.abc.com)

I have over 5000 records and the length of the URLs are all different.
Is there a way to query using LIKE or LEFT to output everything from
the LEFT (http://) to the first single "/" (e.g. http://www.abc.com/)?
Thanks

michael munson
(e-mail address removed)
 
T

tgwarrior

This, unfortunately, doesn't solve the problem. All URLs are
different. I need to pare down the long URLs to their "base" (e.g.
www.abc.com vs. anything that would come after the .com or .edu or
..org).
 
J

John Vinson

I need to query a hyperlink field and only result PART of the URL.
e.g. I have many LONG URLs (http://www.abc.com/doc/part/one/x.html) I
want to query so that I ONLY get the first part of the URL
(http://www.abc.com)

I have over 5000 records and the length of the URLs are all different.
Is there a way to query using LIKE or LEFT to output everything from
the LEFT (http://) to the first single "/" (e.g. http://www.abc.com/)?
Thanks
I take it that all the URL's in fact begin with http://? If so, try

Left(, InStr(8, [URL], "/")) The option...EDT http://community.compuserve.com/msdevapps
 
S

Steve Huff

WHAT? Are you crazy? This is the exact solution I gave you that you said
would not work??

--Steve Huff
 

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