A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

query running a sheet in datasheet view despite property setting



 
 
Thread Tools Display Modes
  #1  
Old March 10th, 2006, 12:32 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default query running a sheet in datasheet view despite property setting

Hi,

I have a query that is running a "select * from sheet X" command where I
want it to display a graph . Now the query works fine but when I run it off a
command button on my main form it fails to display my data as a pivot chart
even though It does it by default when I run the query from my database
window. I have set the default view of the query to pivot chart but this is
ignored when run through my form. Any ideas ?

Cheers

  #2  
Old March 10th, 2006, 05:01 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default query running a sheet in datasheet view despite property setting

If you created the button using the Wizard, the code should look something
like so:

Dim stDocName As String

stDocName = "qry3Years"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Change acNormal to acViewPivotChart .
--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Eamonn" wrote:

Hi,

I have a query that is running a "select * from sheet X" command where I
want it to display a graph . Now the query works fine but when I run it off a
command button on my main form it fails to display my data as a pivot chart
even though It does it by default when I run the query from my database
window. I have set the default view of the query to pivot chart but this is
ignored when run through my form. Any ideas ?

Cheers

  #3  
Old March 10th, 2006, 05:01 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default query running a sheet in datasheet view despite property setting

If you created the button using the Wizard, the code should look something
like so:

Dim stDocName As String

stDocName = "qry3Years"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Change acNormal to acViewPivotChart .
--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Eamonn" wrote:

Hi,

I have a query that is running a "select * from sheet X" command where I
want it to display a graph . Now the query works fine but when I run it off a
command button on my main form it fails to display my data as a pivot chart
even though It does it by default when I run the query from my database
window. I have set the default view of the query to pivot chart but this is
ignored when run through my form. Any ideas ?

Cheers

 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross tab query construction with Subqueries Steven Cheng Running & Setting Up Queries 7 February 13th, 2006 06:52 PM
Datasheet View property does not work consistently Shek5150 Using Forms 4 January 26th, 2006 05:59 PM
Problem with Dual subselect robert d via AccessMonster.com Running & Setting Up Queries 7 January 2nd, 2006 05:51 AM
AHHHH-Get Data from Multiple Excel workbooks JAA149 General Discussion 5 October 30th, 2005 05:19 PM
Print Taher Setting Up & Running Reports 1 August 31st, 2004 09:07 PM


All times are GMT +1. The time now is 12:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.