Accrington climbed up to 12th with an impressive victory at Victoria Road.
They were always in control of the game once Leighton McGivern headed home Peter Cavanagh's pinpoint cross.
It was 1-1 when Cavanagh turned Danny Foster's shot past his own goalkeeper but Andrew Proctor headed home seconds later to restore Accrington's lead.
The home side had plenty of possession after the break but Paul Mullin nodded home after Roscoe D'Sane's effort came back off the bar to seal their fate.
Dag & Red: Roberts, Foster (Graham 74), Smith, Uddin, Griffiths, Southam, Rainford, Huke, Sloma (Boardman 35), Strevens, Moore (Benson 63).
Subs Not Used: Thompson, Taylor.
Goals: Cavanagh 26 og.
Accrington Stanley: Dunbavin, Cavanagh, Roberts, Branch, Richardson, Williams, Harris, Proctor, Brown, Mullin, McGivern (D'Sane 73).
Subs Not Used: Fearon, Miles, McEvilly, Carden.
Goals: McGivern 16, Proctor 27, Mullin 78.
Ref: Graham Horwood (Bedfordshire).