That is strange. I'm not at all sure what that error message is saying.
Since if you entered it as I posted it the only thing that could be
interpreted would be the two quote marks. I am assuming you didn't
attempt to enter four single quotes or leave off the brackets around the
field names.
I just tested the following expression on one of my sample databases and
it behaves as expected and I am not getting any error (Access 2003).
[fLink] Is Null Or [fLink]=""
I did notice that somehow what I posted seems to have a Picked up an extra
comma and zero. What I meant to post was the following (all on one line)
([tbAdditionCharge] Is Null or [tbAdditionCharge] = "") And
[tbAdditionChargeAmount] > 0
You might try testing out the conditional formatting by putting in just
one of the comparisons and see if that works. If it does add another.
Try
[tbAdditionCharge] Is Null
Then
[tbAdditionCharge] Is Null or [tbAdditionCharge] = ""
Then
[tbAdditionChargeAmount] > 0
And finally
([tbAdditionCharge] Is Null or [tbAdditionCharge] = "") And
[tbAdditionChargeAmount] > 0
John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
Bob said:
Thanks John tbAdditionalCharge is Text
tbAdditionChargeAmount is Currency
Both are record source is a table
I am using Expression Is
With your code I am getting Invalid Syntax you must enclose your text
data in Quotes
Thanks Bob
John Spencer said:
Just want to confirm you used
Expression Is
and then entered
[tbAdditionCharge] Is Null And [tbAdditionChargeAmount],0 > 0
and both fields (not controls) are available in the record source of the
form or report.
What field type is tbAdditionCharge? If it is a text field it is
possible that it contains a zero-length string instead of null. You
might try
([tbAdditionCharge] Is Null or [tbAdditionCharge] = "") And
[tbAdditionChargeAmount],0 > 0
John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
Bob Vance wrote:
Thanks Sylvain, but neither code worked of yours , I looked at my first
post and it is correctly worded, if tbAdditionCharge is null and
tbadditionChargeAmount is more than 0 condition to make background
"Red" of tbAdditionCharge
Thanks Bob