473,395 Members | 1,471 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.

Continuous Form Colour

Hi,

I have read several postings about changing the colour of text for
certain textboxes on a continuous forms. I however am unable to get
this to work for what I am trying to do. When I put in my code for
the control source I get the #Error showing up in the text boxes.
What I have in the control source for the text box is:
=iif(HotDeadLine=-1,nextActionDate,"") HotDeadLine is from a table
and nextActionDate is also from the same table. If I change
nextActionDate to something in quotes or change it HotDeadLine it
displays a value and not the #Error. So I assume you can't reference
2 different field names from tables... Does anyone know what I can do
to get this to work. What I need is any nextActionDates that have a
HotDeadLine value of -1 to be displayed in red otherwise the
nextActionDate will just be displayed in the usual black. If it
helps I am using Access from the Office XP Suite.

Thanks in advance for your hepl!

Brad
Nov 13 '05 #1
1 1335
Are the two fields from the table that the form is using as its Record
Source? If so, try enclosing them in brackets. I know that for most things
you don't need to if there aren't spaces in the name, but in a control's
Control Source you need to any way.

=IIf([HotDeadLine] = -1, [nextActionDate], "")

For the color change, in form design view, right click the control and
choose Conditional Formatting. In the combo box choose Expression. Set the
Expression to

[HotDeadLine] = -1

and set the color to Red.

--
Wayne Morgan
MS Access MVP
"Brad" <cr****@hotmail.com> wrote in message
news:64**************************@posting.google.c om...
Hi,

I have read several postings about changing the colour of text for
certain textboxes on a continuous forms. I however am unable to get
this to work for what I am trying to do. When I put in my code for
the control source I get the #Error showing up in the text boxes.
What I have in the control source for the text box is:
=iif(HotDeadLine=-1,nextActionDate,"") HotDeadLine is from a table
and nextActionDate is also from the same table. If I change
nextActionDate to something in quotes or change it HotDeadLine it
displays a value and not the #Error. So I assume you can't reference
2 different field names from tables... Does anyone know what I can do
to get this to work. What I need is any nextActionDates that have a
HotDeadLine value of -1 to be displayed in red otherwise the
nextActionDate will just be displayed in the usual black. If it
helps I am using Access from the Office XP Suite.

Thanks in advance for your hepl!

Brad

Nov 13 '05 #2

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

Similar topics

1
by: Kit Truong | last post by:
I have an Access form in which the default view is Continuous Forms so I have all the records listed per row. I want to set the backgroud of a field in a particular row a different colour...
2
by: Cro | last post by:
Dear Access Developers, I am developing a form with 'default view' set to "continuous forms". I am suffering with a problem I can't yet see a solution too. Each record has many fields. Two...
3
by: Hans Karman | last post by:
Is there any way in which I can have the background colour of one or more records set to the colour stored in a datafield within the record? Hans Karman, Canberra, Australia
3
by: Hans Karman | last post by:
Is it possible to set the background colour for each record in a continuous form to the colour stored in a datafield within that record? Hans Karman, Canberra, Australia
4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
10
by: webgirl | last post by:
Hi there, I've been searching the net & the forums here over the last few days for help with my problem & am getting myself really confused.. hoping someone may be able to help me here. I've...
9
by: OllyJ | last post by:
Hi guys, I have a continuous form and one field is Day / Night, where a 'D' or 'N' is contained to represent each. Is it possible to write code for the 'on current' of the form to ensure a box...
2
by: Steve | last post by:
I have a continuous form showing Product Code and Product Name. Product Code is five digits and is sequential. I have a textbox in the form header. What is the code to scroll the continuous form so...
6
GazMathias
by: GazMathias | last post by:
Hi Guys, Anyone know if this is possible? I have a need to display multiple colours in a subform, next to a colour reference name. My row source includes the RGB values (intColorRed,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.