Jamie McCarthy/Getty Images
Barrymore first asked Moore about meeting Freundlich back in 1996 while making The Myth of Fingerprints, which he directed.
″What’s really funny about that was that it was 24 years ago, that’s what’s shocking to us, we met 24 years ago," Moore said.
The Drew Barrymore Show Julianne Moore
RELATED: Julianne Moore Celebrates 17th Wedding Anniversary with Bart Freundlich: 'No One I'd Rather Be with'
Barrymore, 45, then asked the Still Alice actress if she had any advice on how to maintain a successful relationship for so many years.
″The only thing that I can say is, I think that you both have to really want to be married,″ Moore said. ″I do feel like I’ve seen situations where things aren’t working out for people, one of the members of the couple doesn’t want to be there.″
″I think if you’re both invested in it working out, and then you really have to have a good time,″ she added. ″My God, I think they really have to make you laugh. If they don’t make you laugh, it’s just deadly."
Never miss a story — sign up for PEOPLE's free daily newsletter to stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories
Moore also reflected on how her and Freundlich's relationship hasn't felt "like a long time."
"I mean, I think that's what’s been nice about it. It doesn’t feel like a long time," she said.
Last month, Moore, who shares son Caleb, 22, and daughter Liv, 18, with Freundlich, gushed about her relationship on social media while celebrating their 17th wedding anniversary.
RELATED: Julianne Moore Shares Sweet Photo of Her Lookalike Kids Caleb and Liv: 'My Babies'
Moore posted a photo of herself on Instagram embracing her filmmaker husband, 50, as they smiled and posed together in matching white shirts while barefoot. In her sweet caption, Moore joked about each other's quarantine hygiene on their special day.
″I said he should take a shower. He said my hair smelled bad, like mildew, or an old box," wrote Moore at the time. "Happy 17th Wedding anniversary @freundlich96 — there is no one I’d rather be with everyday. I love you. #anniversary #quarantine."