473,399 Members | 3,106 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,399 software developers and data experts.

Text Box BackColor different for each row in continuous form

GazMathias
228 Expert 128KB
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, intColorBlue, intColorGreen).

I currently have the subform set up with the colour name and an unbound text box which I can easily recolour using

Expand|Select|Wrap|Line Numbers
  1. Me.ColourPreview.BackColor = RGB( (Me.the vars above) )
I can't figure out how to make each one adhere to its RGB settings, changing one changes them all, now matter which event I use.

Any insights are much appreciated.
Apr 17 '09 #1
6 5086
JustJim
407 Expert 256MB
@GazMathias
Check out Stephen Lebans sample DB here which might be of help.

Also a previous Bytes discussion here.

Jim
Apr 17 '09 #2
FishVal
2,653 Expert 2GB
@JustJim
Conditional formatting allows up to 3 different formats only.

@Gaz
No way with subform. Use an other control.

P.S. I see at least three candidates to this role: MSComCtl.ListView, MSComCtl.TreeView, OWC11.Spreadsheet.
Apr 17 '09 #3
GazMathias
228 Expert 128KB
@FishVal
Thanks Fish' I'll check those out!

Gaz.
Apr 17 '09 #4
NeoPa
32,556 Expert Mod 16PB
That's a tough one Gaz.

Although bound controls can display different values according to what's in the dataset record, Access only has one instance of the control itself. This means that all versions seen on the form reflect the same attributes until you change something, when all change to reflect that of course.
Apr 17 '09 #5
FishVal
2,653 Expert 2GB
Just a thought.
If you use Access 2007, you may see what could be done using bound Image control (in a case when color list is not expected to change) or rich text control.
Apr 17 '09 #6
GazMathias
228 Expert 128KB
Thanks for your efforts guys, I have now decided to write the system as a web application. This solves the issue. I should have stated before also that the parent record to that above could have multiple instances of the colourways and I would need to draw them all!

So much simpler to just loop the data into a table, convert the RGB values to hex and write them to a td's style.

Gaz
Apr 17 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Damian | last post by:
Hi. Is there a way to programatically populate a continuous form? I have an array of descriptions that I want to display in the continuous form and I have a textbox on the form called...
1
by: Prakash Wadhwani | last post by:
I'd like to highlight the Current Row in a continuous form using Conditional Formatting VBA Code similar to as under in the CURRENT Event of the Form: My Field Names are as follows: Name, Age,...
1
by: D Boyd | last post by:
Im trying to get the name of a bound control on a continuous form in Access. So that I can get the value of any text field. This is what Im looking to do.... The user enters a value for number...
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: DFS | last post by:
I'm sure this has been discussed before, but I'm too tired to hunt for it. I have a survey table containing questions with different answer scales. Some are 1 to 5, others are A,B,C, etc. I show...
3
by: DavidB | last post by:
I have a Snapshot Control in a continuous form and I want the source for the control to be different for each instance of the continuous data (based on one of the fields in the recrod source for...
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...
13
by: eighthman11 | last post by:
using Access 2003 and sql server version 8.0 Hey everyone. Created a text box where the user types in an Inventory number and it takes them to that inventory number on the contimuous form. The...
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. ...
4
by: Adam Tippelt | last post by:
Situation: I'm using a continuous form to display a lot of information stored in a datasheet. I'm using the form because it allows me to display multiple rows of information per 'record' which is...
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...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.