Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 10th, 2004, 01:13 PM
sgray74 sgray74 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 sgray74 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 17 sec
Reputation Power: 0
Pivot Chart From a Command Button

hello,
I am new to access. I designed a Pivot Chart that i want to be able to call from a command button
and open it so that the data can be manipulated....when i create a command button opening for form
that i named the pivotchart, it opens the form that it creates under the surface...can anyone help me...

i named the pivotchart pvtEquipmentHours

thanks alot for a quick response...

Reply With Quote
  #2  
Old November 10th, 2004, 01:23 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 4
Can you clarify a little by the phrase "it opens the form that it creates under the surface"

lwells

Reply With Quote
  #3  
Old November 10th, 2004, 01:28 PM
sgray74 sgray74 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 sgray74 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 17 sec
Reputation Power: 0
Question

sorry....when you use the wizard to create a pivot chart, i also creates a form that underlies the pivot chart...for example, if you just
double click the pvtEquipmentHours from the forms lists, it opens the pivot chart and you can manipulate the data....but, if you click on
the design button, it opens the form that the wizard makes (like you were going to input data). when i try to call the pivot chart from a command button, it opens the underlying form, not the chart that i need......

sorry for not being clear

Reply With Quote
  #4  
Old November 10th, 2004, 03:05 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 4
You must have made your command button to open the form from the wizard. Just open the code for your command button and insert the acFormPivotChart into the syntax. Something like this

DoCmd.OpenForm stDocName, acFormPivotChart, , stLinkCriteria

That will now open your form in Pivot Chart View instead of the form view.

lwells

Reply With Quote
  #5  
Old November 10th, 2004, 03:36 PM
sgray74 sgray74 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 sgray74 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 17 sec
Reputation Power: 0
cool...thanks alot....what is the stLinkCriteria??....when I omit this statement, it still works fine....i really appreciate the help...

Reply With Quote
  #6  
Old November 10th, 2004, 04:05 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 4
stLinkCriteria, is the variable that would hold a specific condition. Something like this in an English translation of VB Code

Open Form named Customers in normal view and show all records "Where the State is Colorado"

The "Where the State is Colorado" is the sql WHERE clause that is often put into a variable and the wizard calls this variable stLinkCriteria by default. You can omit that part of the syntax.

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Pivot Chart From a Command Button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway