Solved

Pivot Table and hyperlink, workaround possible

Posted on 2013-06-24
27
727 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 16
  • 11
27 Comments
 
LVL 25

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 25

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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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 25

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 25

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 25

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 25

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
 

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 25

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 25

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 25

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 25

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 25

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: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

688 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