Validate other field = TRUE (color)

S

Schmidtnikov

I have a form with two fields that I would like to confirm that the values
are equal.

First field requires basic information about an invoice:

fld_Amount

Then I enter the billing information (the accounts I will charge) and that
sum's to a field:

frm_BillingTotal

I want frm_BillingTotal to maintain a white background (the default) if it =
fld_Amount; however, if frm_BillingTotal does not equal fld_Amount, then I
want frm_BillingTotal to turn red (or something that will call attention)

How can I do that???

Thanks
 
S

Schmidtnikov

nevermind.....I should have read more about conditional formatting before
posting.
 
M

Marshall Barton

Schmidtnikov said:
I have a form with two fields that I would like to confirm that the values
are equal.

First field requires basic information about an invoice:

fld_Amount

Then I enter the billing information (the accounts I will charge) and that
sum's to a field:

frm_BillingTotal

I want frm_BillingTotal to maintain a white background (the default) if it =
fld_Amount; however, if frm_BillingTotal does not equal fld_Amount, then I
want frm_BillingTotal to turn red (or something that will call attention)


Use Conditional Formatting on the BillingTotal text box.
Select the Expression Is option:
[fld_Amount] <> [frm_BillingTotal]
and select the desired BackColor.
 
Top