473,387 Members | 3,684 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.

Format Condition Confusion

I thought that Access 2000 supported more than one FormatCondition for a
control. I have two:

Me(CCtl).FormatConditions(0).BackColor = lngTravel
Me(CCtl).FormatConditions(1).ForeColor = RGB(0, 0, 255)

If either condition is true, the appropriate Format is applied to the
control. If both, however, are met, it only applies the first
condition. (Whichever one is first, the BackColor as shown).

Am I wrong thinking that it should support both? Any suggestion is
appreciated.
--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
Aug 8 '06 #1
1 3334
Randy, my recollection matches your experience, i.e. Access treats the
FormatConditions like a Select Case statement, and only the first match is
processed.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Randy Harris" <pl****@send.no.spamwrote in message
news:3d****************@newssvr27.news.prodigy.net ...
>I thought that Access 2000 supported more than one FormatCondition for a
control. I have two:

Me(CCtl).FormatConditions(0).BackColor = lngTravel
Me(CCtl).FormatConditions(1).ForeColor = RGB(0, 0, 255)

If either condition is true, the appropriate Format is applied to the
control. If both, however, are met, it only applies the first condition.
(Whichever one is first, the BackColor as shown).

Am I wrong thinking that it should support both? Any suggestion is
appreciated.
--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.

Aug 8 '06 #2

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

Similar topics

7
by: jason | last post by:
Pardon the perl noobie post, this one is silly one I'm sure, but nonetheless, I'm stuck on it. why doesn't $_ substitute with the data when the program is passed the string as such. The eventual...
2
by: amith | last post by:
hi I have written javascript for comparing two dates in US format and finding out whether the start date is greater than the end date and vice versa. In this attempt i have instantiated the...
3
by: Gerry Abbott | last post by:
Hi all Im in Ireland, so date format is always dd/mm/yy. It trying use query as a filter for a recordset, containing a date field, SELECT tblInspections.InspDate FROM tblInspections WHERE...
15
by: Fritz Switzer | last post by:
I'd like to have a string assigned the value of a DateTime.AddMinutes(amount) so that the string is formatted in "HH:MM" format. For example: DateTime.Now.AddMinutes(30) returns "00:30" ...
6
by: CK | last post by:
Hi All, Currently the query returns 2006-03-27 00:00:00, can I make it output 03/27/2006, I want to truncate the time, and replace the hyphens with forward slashes. Any ideas? Thanks In...
2
by: JP SIngh | last post by:
Hi All We are creating a multi-region ASP application which will be using SQL Server 2000. As our users exist in multiple location i.e. UK, US, Australia how can we distinguish that the date...
5
by: veaux | last post by:
I'm thinking this is easy but can't get it. I have a table with following: Table1 Date 1/1/2007 Table2 Type 0107 (This is MMYY of above) So I'm having trouble using a query to turn the...
2
by: Lyn | last post by:
Hi, Having fun trying to get Conditional Formatting working on a textbox control in a continuous form subform (Access 2003). The condition I want is when the value of the textbox is Null and/or...
10
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.