473,395 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Hyperlink to Folder on Tab Control

8
I have a form with a tab control. I am trying to include a hyperlink textbox within the tab but it's doing something weird. When I first add the Address, it works fine. If I remove focus from the textbox and then try to click it again, it shows the field codes. Clicking does nothing.

Example:
If I have the path C:/test/folder on a hyperlink with Text to Display "Open Folder", clicking places a cursor inside the textbox behind the field code:

Open Folder#C:/test/folder#


Before you ask, the control source is a hyperlink field in the source table. I have the "Is Hyperlink" property selected "Yes". Clicking Alt+F9 or Shift+F9 resets it and allows me to open the hyperlink, but if I remove focus the problem persists.

I have an identical box outside of the tab for testing and it works perfectly. I need it in the tab though. Could you please let me know any tips on how to fix this?

PS: I use unique paths for every record, so putting the address in VBA or in the property "Hyperlink Address" won't work.

Thanks!
Dec 20 '18 #1
5 1540
twinnyfo
3,653 Expert Mod 2GB
I would avoid the whole "Hyperlink" field altogether. Make it a simple text field. Then, to jump to the folder, use this:

Expand|Select|Wrap|Line Numbers
  1. Call Application.FollowHyperlink(Address:=Me.txtFolderName)
I would also use a Command Button to execute the opening of the Folder. It sounds like you are using the OnFocus Event?

Hope this hepps!
Dec 20 '18 #2
usfjwl
8
I appreciate the reply but this won't do the trick. I need the hyperlink to navigate to different folders depending on the record. I can't do a VBA function because the address is different for every record. VBA requires a single address.

I'm not using any VBA events currently. I was saying that the hyperlink only works right after I put the address in. If I reopen the form or click away from the textbox and then try to click it again, I get the error.

PSS: I have multiple databases with hyperlink textboxes and have never had an issue. The problem only occurs when the textbox is placed in a tab control.
Dec 20 '18 #3
twinnyfo
3,653 Expert Mod 2GB
I appreciate the reply but this won't do the trick. I need the hyperlink to navigate to different folders depending on the record. I can't do a VBA function because the address is different for every record. VBA requires a single address.
No--it does not. If you look at the VBA example I showed you, it uses the value of your text box.

I'm not using any VBA events currently. I was saying that the hyperlink only works right after I put the address in. If I reopen the form or click away from the textbox and then try to click it again, I get the error.
Then how are you calling your hyperlink? It must be called from an event. Whether you are using a macro (highly discouraged) or VBA, you must still link the activity to an event--which is unclear from your statements thus far.

PSS: I have multiple databases with hyperlink textboxes and have never had an issue. The problem only occurs when the textbox is placed in a tab control.
The location of your text box should be completely immaterial. It would be helpful for us to know how you are calling your folder to open (see the previous paragraph, and my initial inquiry).

On a side note, if you have multiple databases, then it behooves you to begin learning VBA. Macros are extremely limited, and once you begin using VBA, you will gain an appreciation for its relative simplicity as well as its flexibility and usefulness.
Dec 20 '18 #4
usfjwl
8
I appreciate your fast response.

Maybe a bit of background might help. I'm making a form for customer records and the hyperlink path goes to each customer's personal folder in our system.
I enter the hyperlink address by rightclicking the textbox, going to Edit Hyperlink, and adding the address. This method has always worked before.

I'll try the method you suggested again and get back to you tomorrow. Thanks again for your help.
Dec 20 '18 #5
NeoPa
32,556 Expert Mod 16PB
Sound advice there from Twinny.

You can play around with hyperlinks, but there's really very little point in Access where you have controls and events behind them. It's just simpler and more straightforward.
Dec 21 '18 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mike Moore | last post by:
Can anyone recommend a browse folder dialog control for ASP.NET (VB)? I need my web page to allow a user to select a file on their server.
1
by: Mark | last post by:
Ok this is very odd. I have a hyperlink server control (not a linkbutton) on my .aspx page. When the navigateurl property is set to a file (blah.aspx) in the same directory as the current page,...
1
by: Mervin Williams | last post by:
Does ASP.NET provide its own web tab folder control?
5
by: JerryK | last post by:
Hi, I am trying to put a hyperlink to a .cer (certificate) file on a form. Normally (on a ,htm page) when the user clicks on the hyperlink, the file is not recognized and the user is given the...
3
by: hecsan07 | last post by:
Hello When the user clicks on a hyperlink I want to cause something to happen before the user is actually redirected to the page specified in the navigateUrl proerty of the hyperlink. How do I...
1
by: khalid sohail | last post by:
hi everybody i want to pass the window size parameter to <asp:hyperlink> attribute Navige URL Property. tell me how to pass the parameter to it.....actually i want to open the new window on the...
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
3
by: jport | last post by:
Hi Everyone, Am attempting to use MS Access 2000 and ArcGIS to build a comprehensive Land Referencing system, that is orientated to the new and inexperienced user, while also being versatile...
4
by: mbewers1 | last post by:
Hi, I've got an XML file with one <title> and one <link> attribute. What I want to do is implement a hyperlink with the name of the <title> element and whose NavigateUrl property is set to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.