Showing Null Values In Chart

Mar 20, 2007

I have a chart that shows the amount of complaints every month in the last year of a selected costumer. The goal is to see if the amount of complaints from this costumer is decreasing or increasing.

The problem is that some smaller costumers have months without complaints (in real life that isn’t that bad). But my graph only displays a dot for the months were the amount of complaints is not null. This makes that the graph line doesn’t show the complete picture.

I know that I should be able to solve this with an ISNULL expression. I have tried the following SQL code as Row Source of the graph:
SELECT (Format([Complaintdate],"MMM 'YY")), ISNULL(Count([Complaintnumber])),0 AS [CountOfComplaintnumber] FROM [Complaints] WHERE [Complaintdate] > (Date() -365) AND [Costumername] = Forms!Report_complaintscostumer!Combocustumername GROUP BY (Year([Complaintdate])*12 + Month([Complaintdate])-1),(Format([Complaintdate],"MMM 'YY"));
The result of this is that all the months with complaints now get a 0 value and still the months without complaints aren’t shown.

What am I doing wrong? Could someone help me solve this problem? Any help is greatly appreciated!

View Replies


ADVERTISEMENT

Reports :: Showing Null Values?

Jun 9, 2014

I have a list of departments, 1-17, where each needs a SUM of their price for each end of day.

At first I was going to make 17 queries, and place each into a new sub-report, but there must be a way to list all 17, even if they haven't had a sale put through.

I've tried linking using "show all values in tblDept and only those that match in tblOrder" - but I cam across a very obvious issue.

The items are grouped by Z1 Number, a unique number for the end of day sales. If there is no department linked to a Z1 number, then it won't show it. For example, if there were no sales in dept01, then there is no record under tblOrder to show a Z1 number for dept01 - so there is nothing to link to in the report.

I was then thinking of creating false data at the end of day so the Z1 number mentioned each department at least once, but that would get messy and not 'normal'

I'm thinking of a type of loop to generate the report so a 17 row report is generated,

View 5 Replies View Related

Showing Null Values When Calculating Days Passed?

Feb 24, 2012

I am using workdays to calculate time passed between two dates. I also have a table for Holidays that I don't want counted as work days. This is working well, but I would like my queries to show a null value instead of showing #Error when a date field is empty. Here is my coding in my Module.

Option Compare Database
Option Explicit
Public Function Workdays(ByRef startDate As Date, _
ByRef endDate As Date, _
Optional ByVal strHolidays As String = "Holidays" _
) As Integer

[code]....

View 3 Replies View Related

General :: Showing Pivot Chart Value As 100%

Feb 19, 2014

I am completely new to Pivot Tables/Charts?

Basically i have two totals:

Value 1 which is the number of working Employees
and Value 2 which is the total number of Employees

Both are subject to change but my main problem is that Value 2 (Total of Employees) i want to display as 100% in a chart and Value 1 is the percentage of employees utilized.

I have the calculation working fine (Value 1/Value 2).

But if for example i have 35 employees as Value 2, how do i make that show as 100% in the chart?

I get things like 35 or 3500%?

I have played about endlessly changing values etc but just cant get it.

View 3 Replies View Related

Showing A Week Of Data In A Report Chart

Sep 27, 2004

Colm and Baxter, you've been great helps to me so far, and I will include you in the special thanks in my programming credits. I ask your help once more-

My program tracks how many calls are received per day at the office. I have a report showing a chart (thank goodness for wizards ) that lists the calls per day. This all works fine, and I was extremely proud of myself for doing so. However, after thinking about it, I realized that after a while, my client might not care to see ALL of the calls per day ALL of the time, and might wish to see maybe a week's worth or a month's worth at a time. I was thinking I could solve this by using a form to enter "from" and "to" information, but I'm not quite sure how to apply this so it would work with my report.

Also, if I can get this to work, on this same form I would like to have an option field that the user can select so that the usual options (today, this week, this month, this year, all) require only a click, rather than having to figure out what days are in this week (a tedious task, I know, but we're going for efficiency here ) but they also have the option of seeing specific dates they want.

The fields that I'm using for this are very simple- tblCustomer.CallDate and tblCustomer.LeadType, where CallDate is just a date and LeadType is a string from a lookup table that is either "Call-in" (the one I'm tracking) or "In-field".

I know this sounds like a lot of coding, but I'm sure if you could get me started, I could figure out the rest myself. It's just that the way Access does dates is so confusing to me, and I have midterms coming up and not a lot of time to figure this out by myself from scratch. Anyways, thanks for your help in advance!

Jason

View 2 Replies View Related

General :: Data Label On Chart Not Showing Percentage Value

Mar 11, 2014

I created a table called weld_performance. it consist weld_id, weld_prod, total_rt, accepted, rejected, and rejection rate. from weld_prod until rejection rate, the type data is number. the rejection rate field size is Single, and Format is Percent.

Based on this table, i create a query called query1. and based on this query1, i create a chart. please see attachment pic001. as you can see the data label on the chart is showing 0.66667. but in my query1, the value is 67%. if i click the value (67%) it's change to 0.66667.

So I guess, the chart is read the 0.66667 value from the query. now what i want to ask is, how can my chart data label is shown 67% instead of 0.66667 ??

Environment: Windows 7, Ms. Access 2010

View 2 Replies View Related

Query Showing Different Results When Moved To Chart In Report

Dec 23, 2014

I am trying to use this query. It gives me correct results as query. However when I make chart with query on a report it doesn't show correct data and eventually stops making chart

SELECT qry.txtRC, Count(tbl.txtRC) AS CountOftxtRC
FROM tblMain AS tbl, qryRC AS qry
WHERE (((tbl.txtDepartment)=[Forms]![frmRC]![cboDepartment] Or [Forms]![frmRC]![cboDepartment] Is Null) AND ((tbl.txtZone)=[Forms]![frmRC]![cboZone] Or [Forms]![frmRC]![cboZone] Is Null) AND ((tbl.txtRC )=[qry].[atnRC ID]) AND ((tbl.date) Between [Forms]![frmRC]![startDate] And [Forms]![frmRC]![endDate]))
GROUP BY qry.txtRC , tbl.txtRC
HAVING (((Count(tbl.txtRC )) Is Not Null)) OR (((Count(tbl.txtRC )) Is Not Null))
ORDER BY Count(tbl.txtRC ) DESC;

View 1 Replies View Related

Modules & VBA :: Invalid Use Of Null With No (obvious) Null Values

Jul 5, 2013

It might be an easy one but I just wasted the past hour deciphering through my code in order to solve the run-time error '94' that I'm getting when trying to execute the following code:

Code:
Private Sub cmdUpdateDates_Click()
'###################################
'This sub aims at combining the timesheet date and the start and end time into the fields [Start Time] and [End Time].
'###################################
Dim intCounter As Integer
intCounter = 0
Dim rs As ADODB.Recordset

[Code] ....

View 1 Replies View Related

Showing Records With A Null Value On Form

Apr 26, 2006

Ok this null value thing is killing me. I have a parameter query that works great. I know if I use Is Null in the criteria field it will show me this. The problem is I made a search form which the users type the value in and it opens a form based on the parameter query, the parameter on the query is [Forms]![Search_frm]![txtClosed]. If they type a date in here it opens the form and shows the user all the closed records. The problem is they want to see all the records that have no value or Null. I've tried eveything to make this work. I'm ready to jump!! Just kidding. Is there a way to do this with out creating another query. Thanks a bunch!!!

View 2 Replies View Related

Forms :: Form Field Always Null Even When Showing Data

May 3, 2015

The code below always displays opens form even when field being tested is null.

Private Sub Assign_Classes_Click()
On Error GoTo Err_Assign_Classes_Click
Dim stDocName As String
Dim msgboxstring As String
Dim stLinkCriteria As String
Me.name_found.Requery

[code]....

View 14 Replies View Related

Showing Subform Based On Whether Or Not A Field Is Blank Or Null

Sep 15, 2015

I am trying to show a certain subform based on whether or not a field is blank or null. This database is not owned by me--it's what we use to run queries and reports on the data on a centralized server for the library. It's not even in the same city--so changing the tables is not an option for me.

So, I have a subform (subform1) that is linked to the main form based on 2 fields (BibID and Item_Enum). The trouble is that the second field (Item_Enum) is sometimes blank, so the subform will not display. So I created another subform (subform2), which is a duplicate of the first one, but this time only linked on the first field (BibID). So, if that second field (Item_Enum) is blank, I want subform2 to display and subform1 to be hidden. If the second field (Item_Enum) is not blank, I want subform1 to display, and subform2 to be hidden.

I've tried putting the VBA code on different events for the form, but I can't get it to work consistently.

There are two problems, one of which I think I have fixed--but I would prefer a better solution. The VBA code doesn't run unless the form is newly loaded. I've tried placing the VBA code on different form events, but nothing works. I want the code to activate whenever a new record is displayed. The work around is that the form IS newly loaded every time the user scans a barcode for a new book. That works now, but if I need to change the way the user looks up new records, this might not work anymore.

The second problem is that the VBA code doesn't display subform1 when Item_Enum is blank. It doesn't display subform2 either, but that's the desired result.

Private Sub Form_Load()
If Me.ITEM_ENUM = "*" Then
Me.subform2.Visible = False
Me.subform1.Visible = True
Else
Me.subform2.Visible = True
Me.subform1.Visible = False
End If
End Sub

I've tried changing the condition to Me.Item_Enum = null, and changing the false/true results accordingly, but that didn't work either. In that case, only subform2 is visible, whether it should be or not.

View 2 Replies View Related

Creating Chart Using Field Values From The Report

Apr 18, 2007

I have created a report using a query. Further to this, I have added some fields from the query into the report which calculates the sum of records and the count of records.

My problem here is, using the chart wizard, I am only able to select the fields existing in a 'Table' or a 'Query'.

Can anywone help me to create a Bar chart / Pie chart using the fields in the report? :confused:

View 2 Replies View Related

Reports :: Shading Area Between Two Values In A Chart?

Mar 19, 2014

I have show results of scores on a graph but need to show if those scores fall below, in between or above acceptable limits. For example, lets say the acceptable range is between 10.5 and 15.6 but people can scores between 0 and 50. So what I need to do on a report chart/graph is show the actual scores in columns, let access automatically adjust the scale, but have the area between 10.5 and 15.6 on the scale highlighted or coloured or perhaps indicated by two horizontal lines across the chart/graph.

View 5 Replies View Related

Field Criteria: Is Null; There Are Null Values In That Field; No Records Are Returned

Nov 16, 2007

I think the title pretty much sums it up....

I have a query where data is first sorted by user input; first field's criteria: [fieldname], then by another field's criteria: Is Null.

I know there are records containing null values in the second field, as I have run a select query with the criteria: Like "*", to make sure they are null, and not zero-length-strings.

The query is refusing to return any results...

Any ideas?

View 10 Replies View Related

General :: Access Chart - Possible To Change Values On Axis Value

Feb 25, 2013

Access charts know if it's possible to change the value axis values.

I create a chart getting values from a query I run, it plots the values but auto selects the value range and the increment.

The values on the value axis are : 0, 0.25, 0.5, 0.75, 1

Is there anyway I can get the values to increase by 0.1 rather than 0.25?

View 1 Replies View Related

Report Showing Num Due To Zero Values

Jan 2, 2014

I have a report that is returning percentages based upon other calculated fields. Some of the percentage fields are showing #Num on the report. I've found this is due to one of the calculated values being zero.

3 Fields used:

Field: Qty
Total: Sum

Field: InitQty
Total: Sum

Field: OrderQty: Sum([Qty]-[InitQty])
Total: Expression

I need two more fields to return percentages based off of those 3 fields. This is what I started out with:

Field: InStock: [SumOfInitQty]/[SumOfQty]
Total: Expression

Field: Ordered: [OrderQty]/[SumOfQty]
Total: Expression

This works great until the query returns one that has sum of qty equal to zero. So this is what I've tried:

Field: InStock: IIf(Nz([SumOfInitQty],0),0,[SumOfInitQty]/[SumOfQty])
Total: Expression

Seems like it should work but its still showing #Num when I run the query.

View 2 Replies View Related

ComboBox Values And Showing ALL Issues...

Feb 13, 2008

Hello,

i have done a search.. and found a post which half answered my problems..

I have a Table with some columns which contain Yes/No check boxes as field types.

I have a form with two unbound combo's with their rowsource property set to a Value List "0";"-1"

When I run my form I get 0 and -1 as options in the combos..how would i get Yes or No as options. (i have changed the Value List to "Yes";"No" but the query gives me an error. I also tried to set the rowsource to SELECT Distinct Car from Pupils; and this 'does' work but i dont get the ALL column. I have also tried SELECT Car from Pupils UNION SELECT "" from Pupils;

This gives me the ALL at the top..but 0 and -1 as values to choose from..

I understand that Access stores values in checkboxes as 0 and -1

so to recap..

I want to click on the dropdown combo and have a blank 1st entry.. then entry 2 and 3 will be Yes and No ..not 0 and -1

attached my db file..

kind regards

omar

View 6 Replies View Related

Query - Showing Values If A Certain Time

May 3, 2008

Hello all, I am trying to dispay results in a query which is based upon time.

e.g.

Sample data - class and class start time

Class one - 7pm
Class two - 7pm
Class three - 7pm
Class Four - 8pm
Class Five - 8pm
Class Six - 9pm
Class Seven - 9pm
Class Eight - 9pm
Class Nine - 9pm

If i was using the sample data above and the time was between 7pm to 8pm i would like to show only the classes which started at 7pm, or if the time was 8pm to 9pm, only show the classes which started at 8pm and the same for 9pm

I hope i have explained myself clearly, and I will be thankful for any help.

Thanks

View 4 Replies View Related

Form Values Showing As 1, 2 3 Etc In Reports

Jun 15, 2005

Hi Guys,

I`ve searched the forums, but not knowing the terminology, i cant find what I`m looking for.

I have a table which is use for a drop down list in my forms.
This is saved into a table, but shows up as a numerical instead of the name value.

Also In reports, I get a numerical value, instead of the text value.

Is there something I`m over looking ?
Or am I doing something totally wrong.
My relationships are correct. and the field data is right, I just cant over come the number issue.

Thanks in advance.

View 6 Replies View Related

Not Showing Blank Values On A Report

May 3, 2005

Hi,

Each client has either an entry with a correspondence number or a notes number. So, the table would look somewhat like this:

Client: 333, Correspondence: 1, Notes: Blank
Client: 333, Correspondence: 2, Notes: Blank
Client: 333, Correspondence: Blank, Notes: 3
Client: 333, Correspondence: Blank, Notes: 4

How would I make a report that will make it look like this

Client: 333, Correspondence: 1, Notes: 3
Client: 333, Correspondence: 2, Notes: 4

Thanks! Hope that was clear.

G

View 4 Replies View Related

Forms :: ComboBox Not Showing Values?

Jul 16, 2013

I have a combobox with the following specs.

Row Source Type = Value List
RowSource = 1;test1;2;test2;3;test3;4;test4;5;test5;6;test6;7; test7;8;test8;9;test9;10;test10;11;test11;12;test1 2
ColumnCount = 2
ColumnWidths = "0cm;8cm"
Bound Column = 1

For some reason unknown to me, although the combobox does drop down when entered, the values are not visible until selected, then the selected item is visible in the combobox, but still isn't visible in the drop-down list.

EDIT:
I'm using Access 2010

View 9 Replies View Related

Reports :: Field Not Showing Values

May 14, 2013

However, the data is now showing on the generated invoice.The rest are showing up but one.I went back to the tables to check and there is data present.It used to work until recently.

View 3 Replies View Related

Combo Box Showing Blank Values?

Nov 24, 2012

I have one combo box bounded with two fields, Id and Description through a query.

I entered a new id in bonded table but for some reason I don't want to enter description now.

And if I delete the entered id then I will loss that unique id which is using for description, which I don't want.Now the problem is one blank space showing in my combo box.

So what criteria I should use in query criteria to avoid blank spaces?

View 5 Replies View Related

Showing Count Of Different Values Of A Combo Box

May 28, 2014

I have a report on which I have a combo box showing text value as open issues and closed issues. What I want to do is on the report in a text box show count of open issues and closed issues separately.

View 1 Replies View Related

Showing Zero Retuns When Totalling Monetary Values

Sep 20, 2006

Hi there.

I am trying to create a query to show the sum of monies received. However, where there is no money received instead of showing the value as £0.00 it comes up blank.

How do I get it to show it as £0.00 when run?

Regards

Pete

View 2 Replies View Related

Combo Box Has Right Amount Of Values But They Aren't Showing Up

Dec 18, 2013

I'm creating a form where people can choose something in the first combo box [ComboBox1] which results in the second combo box [ComboBox2] displaying only the items that are associated with the first combo box [ComboBox1].

In my second combo box I have the amount of "empty lines" that equals with the items associated with the first combo box. But there is nothing displaying. No words.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved