That is a possibility (that the problem is the "Yes"/"No" vs. True/False distinction..) How exactly is the value of [GoalsMet] derived? Is it:
a) based on a formula that returns True or False, and the text box is set to display "Yes" or "No"
b) based on a formula that returns the text, "Yes" or "No"
c) based on a Yes/No field, and the text box is set to display either "Yes" or "No" or
d) based on a text field which has the text "Yes" or "No" in it?
When I wrote the code above, I assumed it was either B or D. If it's either A or C, you'd need to change "Yes" to True (no quotes), and change "No" to False (no quotes).
Another possibility is that it's not linking the Detail_Format subroutine to the Detail_Format event. Access does that sometimes, particularly if you didn't create the subroutine through the property sheet.
Go into the property sheet for the detail section, Events tab, and make sure you see "Event Procedure" in the "Format" line.
If you don't, select Event Procedure from the drop-down, click the "..." thingy, and it should open the code window with the cursor in the Detail_Format subroutine.
If, instead, it opens the code window with a totally
different (blank) Detail_Format subroutine, cut and paste all the code from the old one into the new to get it to link the procedure with the event.
Please let me know if you run into anything else, and I'll hope to help
