Hello Ann Vlna,
last() is a tricky function of InfoPath and you will notice if it is in the repeating group itself, InfoPath is not sure which is last(). By using sibling (preceding or following) you can create logic to highlight.
In the attached example, there are 2 tables. The first uses a formula in the condition to specify the last entry. The second uses a helper field that calculates the number o total rows, and compares that to the count of the preceding-sibling + 1.
Hope that answers your question, let me know how it goes!
Bre
Bre Huston
| Project Manager
Qdabra® Software / InfoPathDev.com / FormsQuo / 877.544.2389 main / 425.318.7843 direct
Business Process Automation for Everyone – Streamline data gathering to
turn process into knowledge.™