Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional formatting on Yes/No fields

Status
Not open for further replies.

DeRochier

Instructor
Aug 27, 2016
11
0
0
US
I have a mystery: I have a form with two sub-forms. Both sub-forms have a Yes/No field denoting whether an item has been marked as completed.

On one subform the conditional formatting works:

Field: txtToDo
Expression is [ToDoComplete]=-1 results in the conditional formatting being applied.

However on the second subform, bound to a different table, the same conditional formatting expression has no effect:

Field: txtSubTask
Expression is [SubTaskComplete]=-1 results in no conditional formatting being applied (even though it should).

Why would conditional formatting on a Yes/No field work on one sub-form and not the other?
 
Do the two controls txtToDo and txtSubTask have the same standard format properties such as background etc? Are they both text boxes?

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
If [SubTaskComplete] is a checkbox, you may want to change the expression to [SubTaskComplete]=True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top