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

programming colorcode in forms

Hi,

I tray to made a programming code for a form based on a table tblUpdate.

tblUpdate contain following fields:
Idnr
colorcode = number (1,2,3 or 4)

When in a simple form based on tblUpdate, i should like to see that all
records with colorcode value 1 are schowed in red, all records with
colorcode 2 are blue ect...
I haved tested with
Me!colorcode.forcolor = (rgb,255,0,0) bud it doest'n work.

I tray to find a solution based on programming code with vba. thanks anyway

Eddy,
Feb 19 '07 #1
2 1539
On Feb 19, 3:54 pm, "flower1" <ecarnot...@skynet.bewrote:
Hi,

I tray to made a programming code for a form based on a table tblUpdate.

tblUpdate contain following fields:
Idnr
colorcode = number (1,2,3 or 4)

When in a simple form based on tblUpdate, i should like to see that all
records with colorcode value 1 are schowed in red, all records with
colorcode 2 are blue ect...
I haved tested with
Me!colorcode.forcolor = (rgb,255,0,0) bud it doest'n work.

I tray to find a solution based on programming code with vba. thanks anyway

Eddy,
For starters, it should read Me!colorcode.Forecolor = rgb(255,0,0).
Second, changing properties in a row of a datasheet or continous form
will affect all rows, not individually.

Feb 19 '07 #2
Conditional formating set for each field on the form will allow you to
set the background could for 3 of the conditions.

And that will work on all form types including datasheet view.

Try that

Ron

Feb 19 '07 #3

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

Similar topics

9
by: tjones | last post by:
Hi, I am guessing this is *THE* nntp newsgroup for C#? I was hoping someone could point me in the right direction. Id like to find employment in the IT industry as a programmer again. My...
13
by: Karl | last post by:
Hi all, I used to be a Delphi progammer and swithed to C# recently. I know c# is a pure OOP language. But my main goal is developing database application. In delphi, I could put some...
0
by: Henry | last post by:
Using ideas provided by some of you I was able to figure out how to get the names of the parameters fields of a crystal report specified at run time. The code below just basically puts the...
26
by: I_AM_DON_AND_YOU? | last post by:
This is the scenario: I have a VB.Net project comprising of a few Forms. On Form1 I have more than 20 buttons. There is a very lenghty code written in click event of each and every button. Right...
7
by: Michael | last post by:
Hey, I'm, I guess, an itermediate programmer and I have a question about learning any programming language. I understand that as a programmer you're going to probably constantly be re-writing code...
8
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, I am new to .net technologies. ASP.NET supports socket programming like send/receive in c or c++? I am developing web-site application in asp.net and code behind is Visual C#. In...
0
MMcCarthy
by: MMcCarthy | last post by:
VBA is described as an Event driven programming language. What is meant by this? Access, like most Windows programs, is an event driven application. This means that nothing happens unless it is...
3
by: eliben | last post by:
Biggest issue I have with Python is screen input and output. I am trying This is hardly an issue with Python. You'll run into it with all languages. You think wxPython is hard to master ? You...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
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,...

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.