Solved

Pivot Table and hyperlink, workaround possible

Posted on 2013-06-24
27
668 Views
Last Modified: 2013-07-27
experts,

I am wondering if there is a crafty way an expert has figured out to allow hyperlink functionality in a pivot table?

thank you
0
Comment
Question by:pdvsa
  • 16
  • 11
27 Comments
 
LVL 24

Expert Comment

by:chaau
ID: 39273165
Have you tried converting it to TEXT (using CStr)?
0
 

Author Comment

by:pdvsa
ID: 39274392
Hi Chaau, thanks for the response.  Can you explain a little more?   I have not tried converting to text.
0
 
LVL 24

Expert Comment

by:chaau
ID: 39274468
Hi pdvsa. Can you explain what is required a little bit more. Are you trying to convert rows with hyperlinks to columns in a query? Or are you trying to display hyperlinks on a report?
0
 

Author Comment

by:pdvsa
ID: 39276817
Chaau, i have a form that i have set to open as a pivot table.  I am interested in being able to click the company and hyperlink to the company details form.     Let me know what you think now... I would attach a screen print but on my phn now...

Thank you
0
 

Author Comment

by:pdvsa
ID: 39278729
much like the attached.  You can see the field in blue is formatted as a hyperlink but it does not work due to the form being formatted as a pivot table.

PivotForm
0
 
LVL 24

Expert Comment

by:chaau
ID: 39280037
Do you have valid URLs attached to the hyperlinks? What is in "Hyperlink Target"? Can you check the properties of the field and show us what is it? What query do you use for the PIVOT. Can you post it as well?
0
 

Author Comment

by:pdvsa
ID: 39280156
Hi Chaau, the hyperlink code is a Docmd.OpenForm that open another form...If that makes a difference.  Its not an internet hyperlink.

I will post the qry and pic of the code.  I am not at computer at this time (computer is at work).  Have a good night.
0
 
LVL 24

Expert Comment

by:chaau
ID: 39280190
BTW, how did you create the hyperlink? Is it a hyperlink control, or a normal database field with an option to "Display as Hyperlink"?
0
 

Author Comment

by:pdvsa
ID: 39280215
I think it was a normal field with optoon to display as hyperlink.  It is in the properties in the far left tab (format tab i believe).  I did not put an address in a hyperlink address or sub address... Only the docmd.openForm code in the vba.  

Thank you
0
 

Author Comment

by:pdvsa
ID: 39281863
Chaau:

Query:
SELECT Projects.contractAward, tblEndUser.[End User], Projects.ID, Projects.[Project Name] FROM Projects INNER JOIN tblEndUser ON Projects.EndUserID = tblEndUser.EndUserID WHERE (((Projects.contractAward) Is Not Null));

Here is the code:  
Private Sub txtEU_Click()

    DoCmd.OpenForm "Project Details", , , "[ID]=" & Me.ID
   
End Sub

thank you///
Hyperlinkformat
0
 

Author Comment

by:pdvsa
ID: 39281869
note that I did ask this same question awhile ago

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_27749502.html

but I am asking again just in case Access 2010 has the functionality or if there is some of crafty way to make it work.
0
 
LVL 24

Expert Comment

by:chaau
ID: 39282625
Funny, you've asked about Access2010. Just yesterday I've read an article how to do this properly in Access 2010. They in fact changed a bit. You need to select "Always" and something else. I will come back to you when I am at the computer.
0
 
LVL 24

Accepted Solution

by:
chaau earned 350 total points
ID: 39283023
Read this article. It says in particular that:
But setting Display As Hyperlink to “Always” means that when the user tabs to the control and hits the Enter key, any macros tied to an OnClick event will be run
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:pdvsa
ID: 39283024
ahhhh...sweet!  I am getting 2010 very soon.   thank you..
0
 

Author Comment

by:pdvsa
ID: 39283077
Do you mean in 2010? I tried to set the hyperliink to ALWAYS and the DoCmd.Openform code does not activate..no errors..just doesnt do anything.
0
 
LVL 24

Assisted Solution

by:chaau
chaau earned 350 total points
ID: 39283111
Please specify the fields like in the image below. It works for me:
hyperlink propertiesNote: Hyperlink Target should be empty
0
 

Author Comment

by:pdvsa
ID: 39283240
Chaau, in the image posted above, i do not see a "hyperlink target" property in my image as you show in your image.  Maybe 2010 has this "hyperlink target" and 2007 doesnt?    Pls look at my image posted a few answers above.   (Not at computer right now)
0
 
LVL 24

Expert Comment

by:chaau
ID: 39283247
Ok then. Just check the event "OnClick" It should have "txtEU_Click" selected. Also make sure the form called "Project Details" exists. Have you tried to debug?
0
 

Author Comment

by:pdvsa
ID: 39286689
Hi Chaau,

Did you say it works for you?  Maybe it works on your end because you have 2010 and I have 2007?  According to my previous question answered it seems as though this functionality is not possible in 2007.  

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_27749502.html

thank you

OpenForm,txtEU
0
 

Author Comment

by:pdvsa
ID: 39286691
the form "Project Details" does exist.  I realize the form is not named properly (should be frmProjectDetails...I downloaded a template from MS and it was named this way.  I dont know why professionals name the forms like that.)
0
 
LVL 24

Expert Comment

by:chaau
ID: 39286706
Ok then. Why don't you use hyperlink control. It is much easier. The form can even be opened without an event function
0
 

Author Comment

by:pdvsa
ID: 39286717
Chaau, ok thanks...I have never heard of hyperlink control.  Do I paste an address somewhere in the properties?  Is it Insert>Hyperlink?  Thanks and sorry for my lack of expertise.
0
 
LVL 24

Expert Comment

by:chaau
ID: 39287355
It is where all the other controls are, such labels, texts, etc
0
 

Author Comment

by:pdvsa
ID: 39288360
Chaau, excuse my ignorance but I only see Insert Hyperlink.  I am using 2007.

InsertHyperlink
0
 

Author Comment

by:pdvsa
ID: 39349478
Chauu,  just checking in...i am now using 2010
0
 
LVL 24

Expert Comment

by:chaau
ID: 39349734
That's good. You are now able to use the hyperlink control
0
 

Author Closing Comment

by:pdvsa
ID: 39360927
it works!  thank you
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bind Combobox 4 29
MS Access Append Query From CSV File Into Multiple Tables 26 49
Access Runtime 2010 Error 17 30
Update fields from multiple tables via same form 2 23
This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now