A by-election will then be held for Port Waikato after the general election, with the date to be set by the Prime Minister.