expression
Follows a verb of cognition (e.g., 見る, 思う, 聞く) to mean 'every time one does that action'. Often used in the pattern 〜につけて.
彼の顔を見るにつけて、昔のことを思い出す。
Every time I see his face, I remember the old days.
この曲を聞くにつけて、学生時代を思い出す。
Whenever I hear this song, I recall my school days.
expression
Used in the paired pattern 〜につけて〜につけて, often with contrasting adjectives or verbs, to mean 'whether A or B, in either case'. Common with words like 良い/悪い, 嬉しい/悲しい.
良いにつけ悪いにつけ、結果を受け入れるしかない。
Whether good or bad, we have no choice but to accept the result.
嬉しいにつけ悲しいにつけ、人生
In joy or in sorrow, life goes on.