Husband has trouble?

It's happened before, but more so lately. But my husband will hint and hint that he wants sex, then as soon as we start getting into it, he can't stay hard. He's always ready to go but as soon as we go for it, he goes soft. 
I try not to get frustrated because I don't want to make him feel worse, but it's really hard! Does anyone else have this problem?