Thanks 88. Actually I was in bed last night and what I wrote kept going through my mind because I realized I was wrong. And then I remembered why I associated the two movies together.
News commentary on You've Got Mail mentioned the New York scene at the Empire State Building and how they borrowed that part of the movie from An Affair To Remember.