473,322 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

multicolor Conditional Formatting for Datasheet Forms

5
I am trying to create a form that uses multiple colors based on the status of a project(Green - engaged, Gray - complete, Red - Hold, White - not assigned...). I know that it has been done for alternate fields(gray/white) but has that been extended based on a value in the record to highlight the whole row?
Apr 4 '08 #1
7 10952
nico5038
3,080 Expert 2GB
As long as your colors can be kept within 3 possibilities the way to go is to use the "Conditional formatting" from the Format menu, else the "grey/white" trick could be used, but is a bit cumbersome...

Nic;o)
Apr 5 '08 #2
missinglinq
3,532 Expert 2GB
Actually you can have four colors, as long as one of the colors is the default white.

Welcome to bytes!

Linq ;0)>
Apr 5 '08 #3
jwbird
5
Actually, I wasn't able to get the conditional formatting to work for the rows only the individual cell. I would like to work with 5 or 6 colors if possible.
Apr 9 '08 #4
missinglinq
3,532 Expert 2GB
Sorry, you simply can't do this with a Datasheet View form. In Conditional Formatting from the menu, you're limited to 3 formats plus the default format. In a Single View form you can do all kinds of conditional formatting using the AfterUpdate events of a control and the form's OnCurrent, but not in Datasheet or Continuous views. In the latter two views, you're limited to doing things like locking and unlocking fields in code via the OnCurrent event, but you can't change colors/fonts, etc. because the change applies to all instances of the control.

There is no "row" object, only the controls that appear in a row. There's nothing that I've ever seen whereby you can do this kind of thing in a Datasheet form.You can, however, simulate this by doing the following:

Set up your form in Continuous View to look like a Datasheet View form.

In Design View, place an unbound textbox on your form.

Make it slightly longer and slightly taller than your other textboxes.

Move it so that it sits on top of your other textboxes, slightly to the left and right and slightly above and below the other textboxes.

With this textbox selected , goto the Menu - Format and select Send to Back.

Goto Formatting - Conditional Formatting

Select Expression Is [StatusField] = "engaged"

Select the background color as green.

Repeat this for other values of [StatusField].

Now the unbound textbox, which has become a "background" for your "row" will be colored according to the Conditional Formatting.

Linq ;0)>
Apr 9 '08 #5
jwbird
5
Thanks, I will have to try working with this as a continuous form.
Apr 11 '08 #6
You can set up conditional formatting for more than one cell in one row but it is a long and tedious job. Just do it for one cell then repeat it for all the others you need to have the same format.
Apr 19 '08 #7
missinglinq
3,532 Expert 2GB
You can set up conditional formatting for more than one cell in one row but it is a long and tedious job. Just do it for one cell then repeat it for all the others you need to have the same format.
Actually, it's not tedious if all the cells are being formatted the same and based on the value of the same field. You simply press and hold down the <Shift> key then select each cell to be formatted, goto Format - Conditional Formatting and do your thing . All cells will be formatted in one fell swope.

Linq ;0)>
Apr 19 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
4
by: brAccess | last post by:
I recently installed Access 2003 and immediately noticed problems with applications that work fine in 2000 and XP. I use conditional formatting on continuous forms for a number of reasons. When...
1
by: deko | last post by:
I have a subform datasheet in which I want to bold the text of a field if another field in the datasheet meets certain criteria. I think I want to (select the field in question and) use something...
8
by: Dimitri Furman | last post by:
Given: Access 2002/2003 A subform in datasheet or continuous view, placed on a tab page (this last may or may not matter) Conditional formatting applied to some controls on the subform - format...
5
by: Andrew Chanter | last post by:
Does anyone know a way you can use conditional formatting to create a banded style view as is commonly seen on the internet. (In othe words the first record appears on a gray background, the 2nd...
0
by: GGerard | last post by:
Hello With MSAccess 2000, I have created a program with forms and applied some Conditional Formatting on some of the text box.
0
by: HJ | last post by:
In Access 2000 (ServiceRelease 1) I have a subform in Datasheet view. On one field I have applied conditional formatting: the back color is set to red, based on some condition. The problem is...
1
by: HJ | last post by:
In Access 2000 (ServiceRelease 1) I have a subform in Datasheet view. On one field I have applied conditional formatting: the back color is set to red, based on some condition. The problem is...
2
by: keri | last post by:
I would like to set up conditional formatting on a form. One of the fields on the form is a date (). If the calldate field is over 365 days ago I would like all the other fields on the form line...
2
by: mattloflin | last post by:
First off I have searched on this forum and others for about 1.5 hours and can't find relevant information. I have a form that is in viewsheet or datasheet mode so when you click it it looks like...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.