Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Store hyperlink, when filename may have # in the name?

I tried posting this in another group, with no results, so I'm trying
again...

I need to store a hyperlink to the location of filenames in the
database. I have been successful in storing the information (so far) by
assigning the field the required values separated by hash marks (#, or
pound signs or whatever you want to call them). Since Access requires
the # as the separator, I don't have an option to use another
character.

I have a text field on the form with a Browse button. The user selects
the file, using the browse button, and I store it in the text field as
follows:
Me.txtContractLocation = strPath & "#" & strPath

This shows the full path as well as creating the hyperlink so the user
can click on it.

Now that it's working, I found a document (among the test documents the
user gave me) that has a name which has a hash mark in it called "File
Test #1.jpg". Needless to say, this totally screws up my current
method.

So, NOW what do I do???

I know, I know, tell the users NOT to use stupid names (but try telling
that to a bunch of engineers!).

Thoughts, comments, solutions???

Thanks,
Larry

BTW, Access 2003, Windows XP

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Store hyperlink, when filename may have # in the name?

OOPS! Sorry, wrong news group.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create hyperlink without filename? [email protected] Excel Worksheet Functions 4 April 20th 07 01:30 AM
Hyperlink using filename trimm54 Excel Worksheet Functions 2 February 15th 06 11:41 AM
hyperlink filename # HAS Excel Discussion (Misc queries) 1 December 21st 05 04:07 PM
Macro to change filename of the Hyperlink maperalia Excel Programming 0 November 1st 05 11:59 PM
Store the Spreadsheets filename in a variable? Mike Hanby Excel Programming 2 March 17th 05 11:29 PM


All times are GMT +1. The time now is 07:04 AM.

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

About Us

"It's about Microsoft Excel"