Dear Woody’s marvelous mavens – Does anyone know if its possible to display a form in datasheet or continuous form view with different background colours for each row based on values in the data? e.g. If an amount > X then display this row in red.
Thanks
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Coloured rows in a form (access 97)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Coloured rows in a form (access 97)
- This topic has 8 replies, 3 voices, and was last updated 16 years, 5 months ago.
AuthorTopicWSgellwood
AskWoody LoungerAugust 27, 2003 at 9:13 pm #392685Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerAugust 27, 2003 at 9:22 pm #706316Access moderator MarkLiquorman has a downloadable demo of this on his website; there is a link in his profile; look for Tips, Links and Downloads, then Highlight a single row.
I have attached another demo, written by fellow Lounger SteveH.
-
WSgellwood
AskWoody Lounger -
WSgellwood
AskWoody Lounger -
WSsantosm
AskWoody LoungerNovember 11, 2008 at 5:18 am #1132068Hi All,
I did this on one of my forms a LONG time ago and now I can’t remember how to do it! Using the examples, I can’t find where they are calling for the colors based on the condition. I am looking at frmProducts_Category2 in the highlight2k db example and can’t see where they are changing the color of the line based on value. Please clue me in!Thanks,
Mark -
WSHansV
AskWoody LoungerNovember 11, 2008 at 6:57 am #1132077There’s a series of text boxes txtBackground1 through txtBackground8, each of which fits exactly in the Detail section. These text boxes are stacked on top of each other, and they are placed behind the controls that display data.
The background style of these text boxes has been set to transparent, and the foreground (text) color to a different pastel color for each text box. The font is set to the System font, an old MS DOS font that contains box characters.
The control source is of the form =IIf([CategoryID]=1,String(50,Chr(166)),Null) with =1 replaced with =2 etc. for the other text boxes. In this example, if CategoryID, the text box displays a string of 50 box characters Chr(166) in the specified text color, otherwise it is blank. Because the text boxes have a transparent background and the conditions are mutually exclusive, only one text consisting of colored boxes will be visible at a time.
Before the advent of conditional formatting this was the only way to provide different colors in a continuous form, and it can be used with as many conditions as necessary, instead of just 3 as with conditional formatting. -
WSsantosm
AskWoody LoungerNovember 11, 2008 at 7:06 am #1132085Hi Hans,
I found the conditional formatting thing but it sounds like the other method you explain below would be more flexible and would also look better. On my form, only the background color of the text box is changing, not the entire background under the boxes. Looking at what you have stated below, I take it that you must create other controls that are behind the text.Thanks,
Mark -
WSHansV
AskWoody Lounger
-
-
-
-
WSHansV
AskWoody LoungerAugust 27, 2003 at 9:22 pm #706317Access moderator MarkLiquorman has a downloadable demo of this on his website; there is a link in his profile; look for Tips, Links and Downloads, then Highlight a single row.
I have attached another demo, written by fellow Lounger SteveH.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
[Easter Givweaway] Get Winxvideo AI and another 12 Software for free (Awaiting moderation)
by
Candice
4 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
2 hours, 54 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 hours, 55 minutes ago -
23 and you
by
Max Stul Oppenheimer
2 hours, 56 minutes ago -
April’s deluge of patches
by
Susan Bradley
2 hours, 17 minutes ago -
April’s deluge of patches
by
Susan Bradley
2 hours, 57 minutes ago -
Windows 11 Windows Updater question
by
Tex265
11 hours, 8 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
18 hours, 3 minutes ago -
Registry Patches for Windows 10
by
Drcard:))
22 hours, 34 minutes ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
5 hours, 8 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
15 hours, 56 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 4 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 4 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 13 hours ago -
No Newsletters since 27 January
by
rog7
1 day, 9 hours ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
13 hours, 51 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
12 hours, 31 minutes ago -
Google One Storage Questions
by
LHiggins
3 hours, 38 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
3 hours, 45 minutes ago -
Ancient SSD thinks it’s new
by
WSila
18 hours, 27 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 4 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
3 hours, 10 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 12 hours ago -
Firefox 137
by
Charlie
14 hours, 51 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
2 days, 16 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
2 days, 16 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
2 days, 16 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 12 hours ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
2 days, 20 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
3 days, 2 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.