Oops. You're right. I remembered it as TNG and didn't notice when I looked up the episode name. Wikipedia says "believed to be inspired by" but it would surprise me quite a bit if it weren't.
I didn't love Voyager overall but it had some pretty good episodes scattered throughout.
I'm watching this episode now and it's great! Thank god for Netflix and all the Star Treks on it. :) ;p xx