That is an excellent film. Ford and Lemmon are great in there but another good actor in that film was the guy who played Samatha's husband in Bewitched - the first Darrin. He was a good actor also and played a great role in another Jack Lemmon movie called Operation Madball.
You're referring to Dick York. He also had a major role in "Inherit the Wind".