Substitute Billy Kee severely dented Chesterfield's play-off hopes with a second half double in a 2-0 victory.
The on-loan Leicester striker had only been on the pitch six minutes when fellow substitute John Miles threaded a ball through and Kee finished well from 10 yards out after 70 minutes.
And he made it nine goals for the season with two minutes left when he got on the end of Ian Dunbavin's long punt forward, raced forward and slotted the ball into the net.
The defeat extended the Spireites winless run to six matches and leaves them having to win their last match and hoping other results go their way.
Earlier, Stanley keeper Dunbavin pulled off three superb saves, keeping out Ishmel Demontagnac from close range and 25-yards while also stopping Drew Talbot's effort sneaking into his near post.
But Chesterfield keeper Tommy Lee also had to be alert to push away a Bobby Grant lob but he could do nothing about Kee's double, which makes it two wins out of two for mid-table Stanley.
Copyright (c) PA Sport 2009, All Rights Reserved.