MS Access - Pick Color From Combobox - ms-access

I'm creating a plant database and in the plant detail form, I'd like a dropdown so the user can select the color the plant is, ultimately this would go on a summary report so all of the colors of the plants selected would show and the user can get an idea of what the plant colors would look like planted.
I'm using the Color Index of 56 colors and I made a table with colors (1-56) and used conditional formatting, but conditional formatting only goes to 50, plus I'm not sure on how to get only the color to show on the dropdown.

Here is idea how to display unlimited number of colors in continuous form or report without using conditional formatting:
Create a table, which contains color ID and a column with stored pictures of desired colors, one pixel is enough, each color in separate row. Column data type - OLE Object, insert Bitmap Image with color sample.
Join this table with your main table by color ID column
Display colors in picture control Bound Object Frame, Size Mode should be Stretch or Zoom, one pixel picture will be tiled across whole picture control
Built-in dropdown cannot show color samples, but you can replace dropdown by form with desired samples, it's not complicated.

Related

MS Access: two linked combo boxes on a form

I have three linked dimensions (say color, type, and size of an animal) linked by a fact table.
I would like to create a form with these three dimension choices in combo boxes, so when I select one for a new record, the other two combo boxes refresh with only available values.
For instance, if I select a dog as a type, the color would show (white, black, orange) but not green, if I select size small, the type will not include a whale, etc.
I know i can do in VBA but would like ideally to avoid writing code for this.
This is sometimes referred to as known as Cascading combo boxes, have a read here for one technique http://www.baldyweb.com/CascadingCombo.htm

In SSRS how to conditionally change the colour of a datalabel font on a chart when it appears on the bar

I have created a bar chart that shows values on data labels.
The Data label is placed outside the bar
But in some cases the label appears on the bar where the bar is too long.
In this scenario I would like to conditionally change the font/colour of the data label so that it's more visible.
However I can't see a way to dynamically determine where the label has been placed.
What I can think of is this. You can change the background/font color of all those series labels who's value lies in the range of 95%-100% of the maximum "Value". To be exactly precise as to what should be the threshold to change the bg/font color seems a daunting task, but you could play around with test data.
For writing the expression to change the font color,I would first change the dataset and add a column on the lines of PercOfMax. This column can be calculated easily in the dataset by using basic aggregate functions.
Then you need to go to the Chart Series Label properties-->Color and write the expression on the lines of -
=IIF(Fields!PercOfMax.Value>=95, "YELLOW", "BLACK")
As I said, you might need to do some more research to finalize the value of this threshold(which I am assuming to be 95).
Another solution to this problem is to use fill colour of the label and set its background to a bright colour (e.g. colour), and leave the font colour of the label black. Thus you can always see the label, and there is no difference when it's outside of the bar.

SSRS 2005 Charts: Customize line colors using expression?

Is there a way to change the color of specific line items in an SSRS chart? For example, in the Data tab using an expression within a series group or the values area, or perhaps with a variable? I'm not terribly keen on the color palette that in my current chart, wanting certain areas to stick out a bit more and not sure how to get started.
Thanks.
We do this to ensure different departments are coloured consistently across all reports. In our database we have a colour field on our department table, then in the bar graphs we do the following:
Right click the chart body and choose Properties
Click the Data tab
In the Values section, click the Edit button
Click on the Appearance tab
Click the Series Style button
Click the Fill tab
In the Color text box, put the expression that you want the colour to be. Given that we have this in our department database already, we simply use:
=Fields!DeptColour.Value
and then our departments are coloured the same on every bar graph.
For line graphs, you have to do the same except this time you put the colour expression in the Color text box on the Border and Line tab on the Series Style dialogue (rather than in the Fill).

multicolumn listbox in html

Is there a way to create a multicolumn listbox in html that will properly align each of the columns so that everything is lined up vertically with a column header? for example:
Plate State Make Model Year Color
G655555 IL Mercury Montago 2007 Black
G655555 IL Ford Windstar 2007 Grey
instead of
Plate State Make Model Year Color
G655555 IL Mercury Montago 2007 Black
G655555 IL Ford Windstar 2007 Grey
I am using a listbox instead of a table because I want to be able to select the data that is being displayed. I am not sure if I can do that with a table. So either way, can someone show me how to align the listbox columns OR can I see a method of selecting items, by row instead of column, in a table.
No. Browsers prefer to match the OS on most inputs interfaces. And most browsers ignore HTML and CSS inside an OPTION tag. You might be able to set the font to monospace on the SELECT or OPTION tag.
I think that there may be better ways to build the UI that you want... I also have to question why someone would want to put six data fields into one form value on a list box.
If you're showing tabular data, then use a table. If you want to select a row, then add a checkbox (for multiple selections) or a radio button (for an exclusive choice) to each row.

Access 2003 Continuous Forms

I have a continuous form that contains a drop down box whos control source is the id of a record in a support table. The bound column is this support element id. The row source of the drop down list is a query that gets 2 text fields based on the id in the bound column... the first text field is simply text that is displayed... the 2nd text field is a color. these are actual number color codes for access that the user can enter in by changing the color of a box and saving that particular color
for each of the records in the continuous form, they have one of these levels... Blank, Red Yellow or Green... I want the field that displays the color name to have its background color changed to the color that is in the 3rd column of the drop down...
Any ideas?
You're looking for Conditional Formatting. This article will explain how to use Conditional Formatting to do pretty much whatever you want with the background colors:
http://msdn.microsoft.com/en-us/library/aa139965(office.10).aspx