473,395 Members | 2,446 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,395 software developers and data experts.

conditional formatting on a form

I would like to set up conditional formatting on a form.

One of the fields on the form is a date ([calldate]). If the calldate
field is over 365 days ago I would like all the other fields on the
form line to turn green but I am not sure if this is possible.

Thanks

Jun 20 '07 #1
2 1885
On Wed, 20 Jun 2007 04:05:49 -0700, keri <ke********@hotmail.comwrote:
>I would like to set up conditional formatting on a form.

One of the fields on the form is a date ([calldate]). If the calldate
field is over 365 days ago I would like all the other fields on the
form line to turn green but I am not sure if this is possible.
I'm assuming this is either Continuous or Datasheet view, as you mention a "line". You can use Conditional formatting to
do this, but you'd need to place it in every other control on the form to turn the backcolor green. You'd use the
"Expression Is" condition, then set the value to something like "DateDiff("d", calldate, Now)>365", and set the
backcolor to whatever you choose.

See online help for the DateDiff function
>
Thanks
Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
Jun 20 '07 #2
One thing you can do as an alternative, which would be simpler to implement,
would be to have the background color of the record change if it's over 365
days. That might produce the same effect for you.

To do that, simply create a text box that's exactly the same size as the
detail section. Set its ControlSource to CallDate. Set its Enabled property
to False. And click on Move to Back, so that it's behind other controls.
Then simply set the Conditional Formatting for this textbox, and it will
change the background color of the section when the date is over 365 days.

Neil
"keri" <ke********@hotmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
>I would like to set up conditional formatting on a form.

One of the fields on the form is a date ([calldate]). If the calldate
field is over 365 days ago I would like all the other fields on the
form line to turn green but I am not sure if this is possible.

Thanks

Jun 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

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: Bradley | last post by:
I have an A2000 database in which I have a continuous form with a tick box. There is also a text box with a conditional format that is based on the expression , if it's true then change the...
2
by: Megan | last post by:
Can you write conditional VBA code that affects only one or two records on a continuous subform? I have a form with a subform on it. The parent/ child field that links the forms is CaseID. The...
2
by: Von Bailey | last post by:
I have a form where the conditional formatting is set on some fields to bold if certain conditions are met. However, when the conditions are met some of the data that is to bold is either not...
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.
8
by: Typehigh | last post by:
I have many text fields with conditional formatting applied, specifically when the condition is "Field Has Focus". Without any events associated with the fields the conditional formatting works...
4
by: midlothian | last post by:
Hello, I have conditional formatting set up on a subform based on a calculated value in the underlying query. For instance, if Sales are >$1000, the query displays "Yes," otherwise it displays...
2
by: Filips Benoit | last post by:
Dear All, Access 2003 adp on SQL_server 2005 A continious form showing 1 month based on table 'CALENDAR_MONTH_GRID' and fill with a SP. Fields: Companyname, Day1, day2, etc. The value in the...
1
by: Earl Anderson | last post by:
A business colleague and I are collaborating 'long distance' on an applet for work. He is doing the programming and I am doing the business process form design. We had discussed my desire to make...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.