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

Setting a Hyperlink (UNC) in code 1

Status
Not open for further replies.

LarryDeLaruelle

Technical User
May 19, 2000
1,055
US
I am trying to complete a hyperlink field by prompting the user for the file name and then adding the balance of the path.

This is what I have:

Private Sub cmdLink_Click()

BitMapLink = "\\Eagle\Delaruellelarry$\" & txtFileName & ".bmp"

End Sub

cmdLink is a command button to create the string and assign it to BitMapLink. BitMapLink is the Hyperlink field.

The basic UNC will always be the same. I just want to concatenate the file name and extension which will always be a bitmap.

This code works ok as far as creating the string. When I point to it the cursor responds appropriately by changing to a pointing hand. However, clicking on the link produces no response.

I've tried Access help (both 97 and A2K) with no appreciable assistance.

Any idea why this process will not work?

Thanks. Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Bob:

Thanks for the reply, I was about to give up on this post.

I tried the link but it takes me to the Tek-Tips log on screen.

Where did you find this post?

Thanks again. Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Go to the Keyword Search area using the link under your handle in the upper left corner of this page...

Cut and paste the next line in the search box
How do I open a File from Access

and Set the search settings to search for
Scope: full site
Use: All words
Area: FAQs - - - This one's important...
Fields: full text
When: Any Date


Or go to the forum:
Microsoft: Access Modules (VBA Coding) Forum
Then go to the FAQs
Then scroll down to FAQ 6a

Good luck with it...

Bob
 
Bob:

Thanks for moving me in the right direction.

I solved the problem by setting a display label for the hyperlink.

BitMapLink = "Screen Shot:#\\Eagle\Delaruellelarry$\" & txtFileName & ".bmp#"

Where "Screen Shot:" is the value displayed in the control and the remainder (between the pound signs) is the actual UN
C.
Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top