He was then chosen to fill the casual vacancy caused by the resignation of Brian Archer in 1994 , and was elected in his own right at the subsequent 1998 Australian federal election and re-elected in 2004 Australian federal election and 2004 Australian federal election .