Re-naming chart legend in Access 2007 - ms-access

In an auto-generated chart based on a query (I dragged the chart object onto a blank form to start it), the chart itself is displaying and updating properly, datawise, but I want to change the Legend from reading "SumOfAvgOfield1" and "SumOfAvgOfield2" to regular words suitable for final presentations. But I can't find a way to change it!

I realize this is a late answer, but I was just having a similar issue and figured someone else might benefit from knowing how to get rid of the 'SumOf' labels.
In design view, right click on the chart and select 'Properties'.
Choose the Data tab.
The 'Row Source' field is the one you're going to be interested.
In there you can see various places where it's labeling your data:
Sum() AS [SumOfData]
Just edit the text right in the properties window and you'll be set.

This is WAY late, but here's what I found (Yes we still use office 2007)
Open the form in PivotTable View. Open Property Sheet. Highlight the column you want to change the Legend Caption for. Choose the Captions Tab in the properties window. There you can change the captions for each column.

Had 4 charts on a form. 3 would let me edit the Heading of the Chart, the 4th would not. Read a lot of posts that did not pertain. Noticed the datasheet for the 4th chart was completely empty.
SOLUTION: Clicked on chart until the datasheet appeared. Added mock field headings and mock data to datasheet. I could then click on chart and edit the chart's Heading. You can also highlight and change the color of selected words in the chart's Heading. Very Nice!
Good luck,
Vancer

The SumofAverageOfFiled1, etc is automatically generated. Even if you edit it in the datasheet, it changes back (or at least that is my experience). What I did to get around this is add a Rectangle and fill it with white and size it to cover up the "Sumof" captions. You can Bring to Front the Rectangle. Then you can add text boxes to label the chart's bars to read the way you want them. Drag them over the Rectange and Bring to Front.
Hope this helps.

Everywhere I looked it said just change the Pivot Table to change the Legend Entry.
Well, let me tell you.
First, if you have no Pivot Table that you can see do the following:
go to design view and select the form
right click and hit Properties. Scroll through till you see AllowPivotTableView and select yes.
Now you can go and change the column headers!

This could help
Select xxxxx, yyyyy from zzzz
Chart0.ChartSeriesCollection(0).DisplayName = ![XXXXX]
Chart0.ChartSeriesCollection(1).DisplayName = ![YYYYY]
Was very difficult to me to find a way to do it.

Related

SSRS: Remove empty spaces in report

Below is the output I'm getting. Even when all options are collapsed, I have a ton of empty space that I'd love to eliminate. I have tried row visibility and textbox visibility, but those are currently working to keep my expand/collapse working correctly, I believe. I also tried looking in the properties pane (F4) and messing with the CanGrow/CanShrink properties but no luck in changing output.
How do I fix this?
UPDATE: Here is the design view
Undo all the visibility changes you have made, and probably the undo the group expand collapse changes you made so you have a fresh start.. Even better, create the tablix from scratch again.
Then on the row group properties under the main design window, right-click the row group you want to initially hide and choose properties.
On the visibility tab.. Select "Hide" (if you want the rows in this group to be hidden when the report opens). Then Check the box "Display can be toggled by this report item" and choose the name of text box from the parent group that you want to click to expand. For example, if you were hiding the 'day' group, selected the text box that contains your month name (default this will be the same as the field name).
That's it, just those two steps to achieve what you want. You can repeat this process the month group using year as the toggle etc..
Ultimately, I found a solution by using Report Builder to do what I wanted it to do. I was able to get the output by visually confirming the template. What's strange, is that when I created it, I then opened it up in Visual Studio to see how it differed, and there was absolutely no visibility changes. Meaning, no cells or rows had the Hide option checkboxed.
Furthermore, it differs from what I built previously by not having the extra columns within the grouping, and maybe that's where the extra blank space was coming from. But unfortunately, I found no quantifiable explanation to better help others.

Selecting/highlighting next adjacent cell in row after function has been executed in google script

I am not really experienced with coding so I apologize in advance if this is a stupid question with an obvious answer...
I use a google sheet to keep track of things at work, and my employees use it multiple times a day. They will either type one of three phrases into a certain cell on a row, so I have created buttons using the drawing feature that they can simply click, which will insert the appropriate text into the highlighted cell.
Once this text is inserted into the cell, I would like to add something to the end of the function that automatically selects the next adjacent cell in the row (to the right) so they can continue typing in. Currently, once they click the button to insert text into one cell (e.g., B23) they have to use the mouse to manually select C23 before typing into that cell. For some reason you cannot use the right arrow key or tab key on the keyboard to move over, so I am wondering if there is a way to add the selecting process into the script (or even a workaround for allowing the tab or right arrow keys to work).
I realize this may seem like a tedious question and folks may think it is awfully lazy of me to ask for a more efficient way to move over to a cell than using the mouse, but my employees use the sheet hundreds of times a day, so I'd really like to maximize the efficiency for them to make it as easy and convenient as possible. Inputting data can be tedious enough, so I am trying to simplify things and make it as least painful as possible :)
Thanks so much!
There are several ways to select the cell at the right. One way is to use offset(rowOffset,columnOffset):
range.offset(0,1)
You are correct. When using a button the focus stays in the button when it is clicked. After some trial and error, I think I found a way that will work fot you. I created a html sidebar that is opened from a custom menu. Once opened, you can leave it opened, HTML allows control over the focus using 'google.script.host.editor.focus()'. Then you can type in the cell. Attached is my sample spreadsheet you can copy and try. Let me know if you need any help changing the button names or text. Sorry my first try didn't work correctly. https://docs.google.com/spreadsheets/d/1KlNSJnZDNIb2chUK3SlKJg79VNIrsAbIbUvHyLwTLWk/edit?usp=sharing

Report Builder can StripLines render on top of chart data?

can horizontal striplines on a column chart render on top of the data? My chart is rendering like this;
but I want the stripLine to be visible over the top of the data columns not below it. I am able to put the dataPoint text that you can see on top, even though i'd rather it be able to render to the right of the bar, but that doesn't seem to be possible either. any help would be great. Seems like some of these things would be pretty straight forward functionality for such a dynamic report builder but im also a layman.
Striplines are always in the background.
I would add a new Series to the Chart, and change the Chart Type to Line. For the value I would point at a Goal column in the datasource. If none is available you can use an expression or hard-code the value.
The sequence of the series controls which is infront of the other. You can drag the series around to reorder them.
My suggestion would be to increase the transparency of the color of the columns. click on chart, click on custom palette color in Properties on the right hand-side and specify level of transparency in the color's options.
P.S. I had the same issue and that's how I solved it.
Contrary to what I am reading here, it is possible to have the stripe lines on the front as well. However, you will need to create another Series specify the top and bottom value dynamically, and adjust the PointWidth to lets say 0.8 or something along those lines.
Alternatively, you can add in a bar graph with a line graph, that should do it as well.

Microsoft Access z-index property

I have a form including listboxes. I'm trying to change order of listboxes. I tried bring front or send back but they are not working in form view. I found z index property for arranging their priority. However, following codes are not working. Is this correct way to do it? Or is there any other way with or without codes to do this?
Me.Controls.SetChildIndex (Me.List0 , Me.List1)
Thanks for any help.
Without using code:
You can change the z-order by right-clicking any control and selecting "Position" then selecting either "Bring to Front" or "Send to Back."
Unfortunately, Access does not support the ZOrder method for manipulation using code. Microsoft Forms does support the ZOrder method which can get confusing when it comes up on Access Help.
As I reread your question, I wonder if you're talking about tab order. If so, right-click and bring up "Properties," select the "Other" tab, then adjust the "Tab Index" property. Also, make sure that the "Tab Stop" property immediately beneath is set to "Yes." In code you would use FormName.ControlName.TabIndex=0 to set a control to the first tab position.
Hope this helps!
Reference: Personal experience (and hours of frustration)
docmd.RunCommand acCmdDesignView
forms("form1").Controls("text0").inselection=true
docmd.runcommand acCmdSendToBack '(or docmd.runcommand acCmdBringToFront)
docmd.RunCommand acCmdFormView
Also, ZOrder is still not supported by Access 2016. As such, I have not yet learned a way to write a single line of code that puts a control in between two others, I just send the middle to back and then the back to back, and expand this to however many controls have to overlap.
And last, even though you use the VBA for ZOrder, your English does ambiguously sound like forms("form1").Controls("text0").TabIndex=34, which as Olek suggested, is also quite simple.
I did this on one Access form: The control I wanted on top I just cut and pasted it back to the form, then moved it over the one I wanted to cover. In this case, it was a text box (bound), almost the same size as a combo box (unbound); only the dropdown of the combo extended a bit to the right of the text box, so when the form was loaded the text box looked like a combo box. The user clicked the dropdown and made a choice and the record(s) pulled up were reflected in the text box.

How to hide a MatrixRow in SSRS 2005 based on an expression?

I was wondering if someone can tell me how I can hide a row in a matrix on an SSRS 2005 report. I have tried hiding the specific TextBoxes, but when I do that, I still get whitespace where the TextBoxes would appear, which is pretty worthless.
According to research I have done online, there is supposed to be a visibility/hidden property when I right click the row header and go to properties, but I don't see that there. Below is a link to a screenshot of what I get for the properties:
http://imageshack.us/photo/my-images/696/ssrs.jpg
Where do I find this property? When I expanded all the groups, I didn't see anything related to visibility.
Is it possible to hide this row bases on an expression? Please let me know.
Thanks
New users apparently cannot answer their own questions without waiting 8 hours. It said to use the edit function instead. I'll marked this as answered later.
I think I found what I was looking for. I got the desired result anyway. Since I hate coming to posts and seeing "Thanks, I figured it out" without any other detail...
Right Click on the Matrix, that is to say, right click on the dotted line with the resizing handles that outlines the matrix. After that click properties. This should bring up a Matrix Properties dialog box. Go the Groups tab (5th over). To change the visibility of a row/column, click the "Edit" button. This brings up another dialog box. Visibility is the 4th tab.
Hope that saves someone a headache.
I think I found what I was looking for. I got the desired result anyway. Since I hate coming to posts and seeing "Thanks, I figured it out" without any other detail...
Right Click on the Matrix, that is to say, right click on the dotted line with the resizing handles that outlines the matrix. After that click properties. This should bring up a Matrix Properties dialog box. Go the Groups tab (5th over). To change the visibility of a row/column, click the "Edit" button. This brings up another dialog box. Visibility is the 4th tab.
Hope that saves someone a headache.