A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting is ignoring all conditions



 
 
Thread Tools Display Modes
  #1  
Old December 12th, 2006, 02:07 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 2
Default Conditional Formatting is ignoring all conditions

Hello,

I am using Access 2003 on Win XP. I have a continuous form that has
several text boxes that are conditionally formatted based on their
value. What I am trying to do for this one text box is format the fore
and background color to display nothing (i.e. white) if its value is
the same as that of the previous record. Using a function I found on
the internet, I was able to do that. However, if I add more conditions
to the conditional formatting list for that textbox, Access ignores
_all_ of the conditions and displays the default formatting for that
field. Here is an example ([PreviousValue] is another textbox whose
source is set to the function that returns the previous value of a
field:

This works:
Condition 1:
Field Value Is Equal to [PreviousValue]


But this does not (reverts to default value):
Condition 1:
Field Value Is Equal to [PreviousValue]
Condition 2:
Field Value Is Equal to "any text"

Does anyone know why Access is ignoring all the conditions if I have
more than one, and/or how it can be fixed? This only happens if I am
using the function, but I would like to be able to use the function
with other formatting conditions as well. Thanks!

Please reply to newsgroup; e-Mail does not work.

  #2  
Old December 12th, 2006, 04:19 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 2
Default Conditional Formatting is ignoring all conditions


Nevermind; I created another function that just returned the current
value of the field I was trying to format. Apparently, having that
type of expression and formula in a conditional format would not allow
me to have any other type of expression in the other conditionals if I
was referring to the field being formatted. Strange.

  #3  
Old December 12th, 2006, 06:17 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Conditional Formatting is ignoring all conditions

I'm not sure that is the problem. The condition you described as "any text"
means exactly that, so it is probably using the format for all records based
on that part of the condition.

" wrote:


Nevermind; I created another function that just returned the current
value of the field I was trying to format. Apparently, having that
type of expression and formula in a conditional format would not allow
me to have any other type of expression in the other conditionals if I
was referring to the field being formatted. Strange.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.