How do I change the back colour of a field displayed on a form in datasheet view

Posted on 2011-10-12
Medium Priority
Last Modified: 2012-08-13
I've developed a Faults database - Access 2007.adp/SQL2008. I'm displaying all OPEN faults via a form in datasheet view. I'm trying to colour code the Elapsed Time (Hours and Minutes) of any OPEN fault that has been OPEN for more than 2 Hours in Red. If Under 2 hours then leave white. It would appear that when the form is loaded it takes the settings of the first record  as the default and colours all the displayed records as per the first record settings - see attached "FaultsProblem1.png". If I click on a specific record then it takes that record's settings as the default and applies them to all the displayed records see "FaultsProblem2.png".
What I would like to achieve is to set the back colour of each individual record displayed according to each records Elapsed Time. Is this possible or am I just wasting my time.
Many Thanks
Question by:Adlerm
  • 3
LVL 13

Accepted Solution

sameer2010 earned 1000 total points
ID: 36960214

You cannot do it in datasheet view. But you can create an autoform and apply conditional formatting on the field.


Author Comment

ID: 36960446
Hi Sam
Many thanks for your response. Two questions 1) What is an autform
                                                                            2) How do I create one.

I'll go on line and see what I can find in the interim

Author Comment

ID: 36962370
Hi Sam

Sorry about the delay. I've been trying to learn about autoform and have managed to get one working and do exactly what I as trying to achieve. There doesn't appear to be too much literature about autoform - especially on the internet - and I've still got a bit to learn especially how to modify the form generated (change column headings, put spaces between fields etc). Anyway I'm well on the way. I've never used this feature before so it good to learn something new.  

Author Closing Comment

ID: 36962389
Gave me a good lead into how I could over come my problem

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question