Both Swindon goals were scored in the second half with Andy Gurney scoring on 53 minutes to make the score 1-1.
Tommy Mooney got his 7th goal of the season to score Swindon winner on 65 minutes making the final score 2-1 to Swindon.
Swindon now travel north again this Saturday when they take on Barnsley at Oakwell.