Solved

Pivot Table and hyperlink, workaround possible

Posted on 2013-06-24
27
650 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

707 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

17 Experts available now in Live!

Get 1:1 Help Now