This paper concerns HH-relations in the lattices P(M) of all projections of W*-algebras M. If M is a finite algebra, all these relations are generated by trails in P(M). If M is an infinite countably decomposable factor, they are either generated by trails or associated with them.