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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Reposting - If my query finds no data it won't plot that week



 
 
Thread Tools Display Modes
  #1  
Old February 8th, 2007, 03:53 PM posted to microsoft.public.access.queries
stu
external usenet poster
 
Posts: 134
Default Reposting - If my query finds no data it won't plot that week

I'm running a query which calculates data for eight weeks and returns eight
records. If the query finds no data for one of those weeks it returns only 7
records and the chart only shows only 7 weeks. I want the chart to plot the
"missing" week as (zero), so it always shows eight weeks. if I can get the
query to return a blank record for each "missing" week I'd always get 8
records to plot on the chart. Please advise.

  #2  
Old February 8th, 2007, 06:35 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Reposting - If my query finds no data it won't plot that week

Stu wrote:

I'm running a query which calculates data for eight weeks and returns eight
records. If the query finds no data for one of those weeks it returns only 7
records and the chart only shows only 7 weeks. I want the chart to plot the
"missing" week as (zero), so it always shows eight weeks. if I can get the
query to return a blank record for each "missing" week I'd always get 8
records to plot on the chart.


To do that, you need some data somewhere for each week.

In a crosstab query it can be in the query's Headings
property.

In other cases, you'll need another table with all the
weeks. How this would be done depends on you table and the
query you are using.

--
Marsh
MVP [MS Access]
 




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


All times are GMT +1. The time now is 08:55 PM.


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