Have changed the dbcommon entries when joining tables to lookup appropriate fields as follows
if ("event"==$table && $field=="StudentID") return "`student`.`surname`";
However if I wanted it also to be capable of using `student`.`code` as well as a search lookup how could that be accomplished?