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, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Steps to take before updating to 24H2
by
Susan Bradley
49 minutes ago -
Which Web browser is the most secure for 2025?
by
B. Livingston
1 hour, 12 minutes ago -
Replacing Skype
by
Peter Deegan
48 minutes ago -
FileOptimizer — Over 90 tools working together to squish your files
by
Deanna McElveen
39 minutes ago -
Excel Macro — ask for filename to be saved
by
nhsj
9 hours, 28 minutes ago -
Trying to backup Win 10 computer to iCloud
by
SheltieMom
1 day, 6 hours ago -
Windows 11 Insider Preview build 26200.5570 released to DEV
by
joep517
1 day, 20 hours ago -
Windows 11 Insider Preview build 26120.3941 (24H2) released to BETA
by
joep517
1 day, 22 hours ago -
Windows 11 Insider Preview Build 22635.5305 (23H2) released to BETA
by
joep517
1 day, 22 hours ago -
No April cumulative update for Win 11 23H2?
by
Peobody
10 hours, 9 minutes ago -
AugLoop.All (TEST Augmentation Loop MSIT)
by
LarryK
1 day, 22 hours ago -
Boot Sequence for Dell Optiplex 7070 Tower
by
Serge Carniol
2 days, 13 hours ago -
OTT Upgrade Windows 11 to 24H2 on Unsupported Hardware
by
bbearren
2 days, 17 hours ago -
Inetpub can be tricked
by
Susan Bradley
1 day ago -
How merge Outlook 2016 .pst file w/into newly created Outlook 2024 install .pst?
by
Tex265
1 day, 11 hours ago -
FBI 2024 Internet Crime Report
by
Alex5723
2 days, 21 hours ago -
Perplexity CEO says its browser will track everything users do online
by
Alex5723
6 hours, 10 minutes ago -
Login issues with Windows Hello
by
CWBillow
3 days, 8 hours ago -
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
2 days, 20 hours ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
3 days, 19 hours ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
3 days, 19 hours ago -
Google AI is now hallucinating idioms
by
Alex5723
3 days, 20 hours ago -
april update
by
69800
2 days ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
3 days, 21 hours ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
3 days, 21 hours ago -
WuMgr not loading?
by
LHiggins
2 days, 17 hours ago -
Word crashes when accessing Help
by
CWBillow
7 hours, 25 minutes ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
3 days, 21 hours ago -
Blank Inetpub folder
by
Susan Bradley
3 days, 18 hours ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
4 days, 7 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.