Yes Abs() drops the sign, returning the absolute value.
If you represent the control with a text box on your report, you could use
Conditional Formatting to set its BackColor. In report design view, select
the text box, and choose Conditional Formatting from the Format menu.
Conditional Formatting is not available in Access 97 and older, but you can
still include the color in the Format property of the text box.
--
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.
"Todd D. Levy" <usenet001-tdlevy@spamex.com> wrote in message
news:MPG.1ab423197d27f33f989716@nyc.news.speakeasy .net...[color=blue]
>
> Thanks for the help; I am going to use your work around solution because
> changes to the structure of the database are not possible at this time.
>
> One question: does using Abs in the field row of the query treat the -1
> for Yes/True as 1 so that the sum of 3 fields is 3 and not -3?
>
> I would like to do one other thing for this report:
>
> On the report itself I would like a Yes/No field with a Yes value to be
> displayed with GREEN text, and a Yes/No field with a NO value to be
> displayed with RED text.
>
> I assume this is done with VBA code; does it have to be done on a field
> by field basis individually, or is it possible to address this issue for
> all Yes/No fields with a single block of code?
>
> In article <4047f1e5$0$22509$5a62ac22@freenews.iinet.net.au >,
>
AllenBrowne@SeeSig.Invalid says...[color=green]
> > Todd, the structure you describe usually represents something that has[/color][/color]
not[color=blue][color=green]
> > been normalized properly, i.e. you should create a related table with a
> > record for each choice that does apply instead of heaps of check boxes[/color][/color]
in[color=blue][color=green]
> > one record.
> >
> > To work around this structure, you could use the fact that Access[/color][/color]
uses -1 of[color=blue][color=green]
> > True and 0 for False. Therefore summing the fields gives you a count of[/color][/color]
how[color=blue][color=green]
> > many are checked. Type the expression into the Field row of query[/color][/color]
design:[color=blue][color=green]
> > HowMany: Abs([Field1] + [Field2] + [Field3])
> > Then in the Criteria row, ask for fewer than the total number of boxes[/color][/color]
you[color=blue][color=green]
> > have:
> > < 3[/color][/color]