He met Rachel before the memory wipe
Surprised no one else has mentioned it. He meet and hits on her, then goes to Alcom a few days later and gets the marker injected. When they wiped his memory, the dinner party, although it had been 3 years ago, would have been fresh in his mind. As if it had been just a few days ago.
This happens with the Red Sox making the playoffs bit. That was the last thing he remembered.
In my opinion, the writers should have pointed that out. Maybe have Michael say, "you're that doctor, I know you."
Also when she asks if he remembers her, he could have said, "just from the party."
I mean, he may hit on a lot of women, given his lifestyle, but if he was attracted he would have remembered.
Sigh*
Just another flaw in a very flawed movie, I know, but this one really bugs me.