473,387 Members | 1,791 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,387 software developers and data experts.

Continuous Form: Changing .BackColor depending on value?

Users want negative values to have a yellow background.

No problem on the subforms where every value is a discreet field,
but I can't figure out how to make it happen on a continuous form
where a given field can show many values depending on row.

My kneejerk is making the field's .BackStyle=Transparent and laying it
over top of another field in which I do some sort of workaround with
the numeric .Format thing's color option - but I can't make it
happen.
Nov 13 '05 #1
3 3993
PeteCresswell wrote:
Users want negative values to have a yellow background.

No problem on the subforms where every value is a discreet field,
but I can't figure out how to make it happen on a continuous form
where a given field can show many values depending on row.

My kneejerk is making the field's .BackStyle=Transparent and laying it
over top of another field in which I do some sort of workaround with
the numeric .Format thing's color option - but I can't make it
happen.


There's conditional formatting, I haven't looked at that but I suspect
it's limited to foreground color (I may be wrong).

The workaround is to make the textbox transparent, and another textbox
overlayed (but sent to back) with a control source:

=IIf([MyTextBox]<0,String(30,"g"),"")

Set front to Webdings and very large, set foreground color of that
textbox to whatever you want the background to be.
Nov 13 '05 #2
You need Access2000 or later to use conditional formatting. Conditional
formatting can conditionally set backcolor, forecolor or both (as well as
bold, italic and underline). If your app is A2000 or later, this is what you
need to use.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Trevor Best" <no****@localhost.invalid> wrote in message
news:43***********************@news.zen.co.uk...
PeteCresswell wrote:
Users want negative values to have a yellow background.

No problem on the subforms where every value is a discreet field,
but I can't figure out how to make it happen on a continuous form
where a given field can show many values depending on row.

My kneejerk is making the field's .BackStyle=Transparent and laying it
over top of another field in which I do some sort of workaround with
the numeric .Format thing's color option - but I can't make it
happen.


There's conditional formatting, I haven't looked at that but I suspect
it's limited to foreground color (I may be wrong).

The workaround is to make the textbox transparent, and another textbox
overlayed (but sent to back) with a control source:

=IIf([MyTextBox]<0,String(30,"g"),"")

Set front to Webdings and very large, set foreground color of that textbox
to whatever you want the background to be.

Nov 13 '05 #3
Per Trevor Best:
There's conditional formatting,


Bingo!

I apologize too. Sometime last year someone posted that very answer to the
same question.
--
PeteCresswell
Nov 13 '05 #4

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

Similar topics

3
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? ...
3
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where...
2
by: Simon P | last post by:
Hello group, I'm in desperate need of help. Here goes : I have the following tables : CONTACTS (ContactID, FirstName, LastName, Company, etc.), SHOWS (ShowID, ShowDescription) and SHOWDETAILS...
3
by: David | last post by:
Hi, I need a button shown for each record (cont. form) with specific captions on each. I have a notes form for each record. When a user presses the button they can read the notes. I want to...
11
by: Doug Bell | last post by:
Hi, I am trying to create form that displays data like an Access continuous dataform rather than using a data grid. I am thinking that I can achieve this by creating a row of text boxes, one...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
5
by: Michael R | last post by:
Searching the net I've found a simple technique to add row numbers and alternate colors (for the even and the uneven row) to a continuous form. 1st step: Create a textbox, send it to background...
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...
2
by: ChipR | last post by:
I'm suddenly having a major problem trying to switch between rows in a continuous form in Access 2007. The form represents a timesheet and has a row for each activity that an employee may work on. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.