I think your problem is that you are using a relative URL instead of an absolute one. This means that Domino will tack on the URL of the current database at the start of the link. In order to use a different database, you have to specify it's details. So your code would look something like this:
link := "<b><a href = \"http://server.com/folders/dbname.nsf/7DayUE/" + @Text(@DocumentUniqueID) + "?OpenDocument\">" + EventDesc +
"<TR><TD>" + " " + "</TD><TD colspan=2><i>" + "On " + @Text(wEventDate) + " an event is scheduled for: " + link + "</i></TD></TR>"