A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Pound Signs and Hyperlinks



 
 
Thread Tools Display Modes
  #1  
Old July 7th, 2009, 07:18 PM posted to microsoft.public.access
Williams
external usenet poster
 
Posts: 39
Default Pound Signs and Hyperlinks

I need to append data from a hyperlink field into an SQL table that is linked
into my access database. When the data gets appended into the SQL table it
has the pound signs. I understand the purpose of the pound signs is to
separate the display text # filename path # location in file. But I do not
need anything except the filename and path.

How can I extract just this data & append it to the SQL table. In most
cases the record just has the path & filename with a pound sign at the
beginning and end of the string. I can not issue a find and replace because
when I search for "#" it will stop on any number, not just the actual pound
sign.

Please help!
  #2  
Old July 7th, 2009, 07:23 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Pound Signs and Hyperlinks

If all you need to do is remove the first and last characters, try

Mid(Left([YourFieldName], Len([YourFieldName]) - 1), 2)

If sometimes there's stuff before and after, try:

Mid(Left([YourFieldName], InStrRev([YourFieldName], "#") - 1),
InStr(Left([YourFieldName], InStrRev([YourFieldName]) - 1), "#") + 1)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Williams" wrote in message
...
I need to append data from a hyperlink field into an SQL table that is
linked
into my access database. When the data gets appended into the SQL table
it
has the pound signs. I understand the purpose of the pound signs is to
separate the display text # filename path # location in file. But I do
not
need anything except the filename and path.

How can I extract just this data & append it to the SQL table. In most
cases the record just has the path & filename with a pound sign at the
beginning and end of the string. I can not issue a find and replace
because
when I search for "#" it will stop on any number, not just the actual
pound
sign.

Please help!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.