Match ends, Accrington Stanley 0, Northampton Town 1.
Northampton stayed in the League Two drop zone despite beating Accrington.
The Cobblers scored the only goal of the game after four minutes when Chris Hackett latched on to a long ball and finished from a tight angle.
Stanley's James Gray put an effort wide, before Emile Sinclair's shot at the other end was blocked by defender Tom Aldred.
Visiting keeper Matt Duke had to make a superb injury-time stop to deny Kayode Odejayi and secure the points.
Chris Wilder's side remain in the bottom two despite the win after positive results for fellow strugglers Wycombe and Portsmouth and a draw for Bristol Rovers.
Northampton Town manager Chris Wilder told BBC Radio Northampton:
"There's been a lot of talking over the last few games. That had to stop and we've done our talking on the pitch today.
"We aren't playing with a huge amount of confidence but we had to find a way to win and today we've done that.
"If it has to go to the last game, we'll take it there. We've given ourselves a fighting chance."
- 10HatfieldSubstituted forMingoiaat 78'minutes
- 17GrayBooked at 18minsSubstituted forNaismithat 78'minutes
- 1DukeBooked at 90mins
- 2McSweeneyBooked at 90mins
- 4CarterBooked at 21mins
- 27Kouo-DoumbeBooked at 84mins
- 11HackettSubstituted forTozerat 79'minutes
- 7SinclairSubstituted forConnellat 70'minutes
- Fred Graham
- Shots on Target
Second Half ends, Accrington Stanley 0, Northampton Town 1.
Attempt missed. Lee Molyneux (Accrington Stanley) left footed shot from outside the box misses to the left.
Matt Duke (Northampton Town) is shown the yellow card.
Leon McSweeney (Northampton Town) is shown the yellow card.
Adam Buxton (Accrington Stanley) wins a free kick in the attacking half.
Foul by Leon McSweeney (Northampton Town).
Corner, Accrington Stanley. Conceded by Evan Horwood.
Corner, Accrington Stanley. Conceded by Matt Duke.
Attempt saved. Kayode Odejayi (Accrington Stanley) right footed shot from the centre of the box is saved in the bottom left corner.
Attempt missed. Nicky Hunt (Accrington Stanley) right footed shot from the centre of the box is too high.
Hand ball by Leon McSweeney (Northampton Town).
Attempt saved. John Marquis (Northampton Town) header from the centre of the box is saved in the centre of the goal.
Attempt missed. Tom Aldred (Accrington Stanley) header from the centre of the box is close, but misses to the left.
Corner, Accrington Stanley. Conceded by Matthias Kouo-Doumbe.
Matthias Kouo-Doumbe (Northampton Town) is shown the yellow card.
Kayode Odejayi (Accrington Stanley) wins a free kick in the defensive half.
Foul by Matthias Kouo-Doumbe (Northampton Town).
Substitution, Northampton Town. Ben Tozer replaces Chris Hackett.
Substitution, Accrington Stanley. Kal Naismith replaces James Gray.