Solved

Pivot Table and hyperlink, workaround possible

Posted on 2013-06-24
27
687 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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
 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
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.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

770 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