A late Jason Kennedy goal sealed an away win for Rochdale at Accrington.
George Donnelly scored for the visitors in the first minute, picking up a loose ball and firing in from 30 yards.
Ashley Grimes then converted a penalty after Toto Nsiala felled Dele Adebola before Stanley fought back with Piero Mingoia drilling home from 20 yards.
The hosts then equalised when Rommy Boco's long-range effort slipped through Josh Lillis's hands but Kennedy sealed the win with a breakaway finish.
VIEWS FROM THE DRESSING ROOM
Accrington Stanley assistant manager Leam Richardson told BBC Radio Lancashire:
"You can't expect to concede three goals and win games, although we played some very, very good football at times.
"Some of the decision-making was not great, but they're young kids and they have to learn.
"We move on - the whole club doesn't get too down if we lose, or too upbeat if we win.
"We offered a lot of threat all over the park and Rochdale will go off wondering how they won the game, but credit to them for that. It was a fantastic game for the neutrals."
Live Text Commentary
Full Time The final whistle is blown by the referee.90:00 +3:55
Ian Craney takes a shot. Ian Dunbavin makes a save.90:00 +2:56
Peter Murphy has a header from deep inside the six-yard box and clears the crossbar.90:00 +2:05
Corner taken by Lee Molyneux, clearance made by Phil Edwards.89:36
Inswinging corner taken by Lee Molyneux, Ray Putterill manages to make a clearance.88:18
Effort on goal by Romuald Boco from outside the penalty box goes harmlessly over the bar.84:50
The referee penalises Ian Craney for handball. Free kick taken by Ian Dunbavin.83:48 Substitution
Substitution Ian Craney joins the action as a substitute, replacing Dele Adebola.82:35
Assist by Craig Curran.82:35 Goal scored
Goal! - Jason Kennedy - Accrington 2 - 3 Rochdale Jason Kennedy scores a goal from outside the area to the top left corner of the goal. Accrington Stanley 2-3 Rochdale.80:00
Will Hatfield gives away a free kick for an unfair challenge on Phil Edwards. Direct free kick taken by Kevin McIntyre.79:06 Substitution
Substitution Will Hatfield joins the action as a substitute, replacing Piero Mingoia.76:52
Corner taken right-footed by Jason Kennedy from the left by-line, clearance by Aristote Nsiala.75:24 Substitution
Substitution Matthew Whichelow on for Danny Schofield.74:08
The ball is crossed by Craig Curran.67:37
Effort on goal by Phil Edwards from long range goes harmlessly over the bar.66:54
Padraig Amond gives away a free kick for an unfair challenge on Rhys Bennett. Rhys Bennett takes the free kick.66:24
The ball is delivered by Joe Rafferty, Rob Atkinson makes a clearance.63:28
Lee Molyneux gives away a free kick for an unfair challenge on Joe Rafferty. Jason Kennedy crosses the ball from the free kick right-footed from right wing, clearance by Peter Murphy. Corner taken by Jason Kennedy from the left by-line, Aristote Nsiala manages to make a clearance. Shot from just outside the box by Ray Putterill goes over the crossbar.62:12
Unfair challenge on Piero Mingoia by Kevin McIntyre results in a free kick. Piero Mingoia takes the free kick.
Free kick awarded for an unfair challenge on Piero Mingoia by Kevin McIntyre. Luke Joyce takes the direct free kick.58:37
Danny Schofield takes a shot. Save by Josh Lillis.56:41
Ray Putterill produces a left-footed shot from just outside the penalty box that misses to the left of the target.55:09 Substitution
Substitution George Miller joins the action as a substitute, replacing Aidan Chippendale.53:35 Substitution
Substitution Ray Putterill comes on in place of George Donnelly.53:35 Substitution
Substitution Craig Curran is brought on as a substitute for Ashley Grimes.52:48
Free kick awarded for a foul by Rob Atkinson on Jason Kennedy. Direct free kick taken by Phil Edwards.51:11
Unfair challenge on Joe Rafferty by Aidan Chippendale results in a free kick. Joe Rafferty takes the free kick.49:07
A cross is delivered by Romuald Boco, clearance made by Peter Murphy. Corner from left by-line taken by Danny Schofield. Piero Mingoia takes a shot. Save made by Josh Lillis. Inswinging corner taken from the right by-line by Piero Mingoia. Piero Mingoia delivers the ball.48:38
Centre by Piero Mingoia, clearance made by Ryan Edwards.47:31
George Donnelly crosses the ball, clearance by Peter Murphy.46:11
Aidan Chippendale provided the assist for the goal.46:11 Goal scored
Goal! - Romuald Boco - Accrington 2 - 2 Rochdale Romuald Boco scores a goal from long range low into the middle of the goal. Accrington Stanley 2-2 Rochdale.45:15
Aristote Nsiala delivers the ball, clearance made by George Donnelly.45:01
The second half has started.45:00 +2:05 Half time
Half Time The referee calls an end to the first half.44:24
Luke Joyce gives away a free kick for an unfair challenge on Ashley Grimes. Free kick crossed by Kevin McIntyre.41:26
The ball is crossed by Luke Joyce.40:21
Unfair challenge on Phil Edwards by Aidan Chippendale results in a free kick. Andrew Tutte takes the free kick.38:08
Shot from just outside the box by Padraig Amond misses to the left of the target.36:21
Assist on the goal came from Padraig Amond.36:21 Goal scored
Goal! - Piero Mingoia - Accrington 1 - 2 Rochdale Piero Mingoia fires in a goal from the edge of the penalty box to the top right corner of the goal. Accrington Stanley 1-2 Rochdale.35:27
Corner taken right-footed by Jason Kennedy from the left by-line, Aristote Nsiala manages to make a clearance.34:52
Piero Mingoia concedes a free kick for a foul on Ashley Grimes. Joe Rafferty takes the free kick.32:59
George Donnelly concedes a free kick for a foul on Aidan Chippendale. Free kick crossed by Danny Schofield.31:38 Goal scored
Goal! - Ashley Grimes - Accrington 0 - 2 Rochdale Ashley Grimes scores a power penalty. Accrington Stanley 0-2 Rochdale.31:02
Foul by Aristote Nsiala on Dele Adebola, Penalty awarded.29:23
Padraig Amond is ruled offside. Josh Lillis takes the free kick.28:07
Aidan Chippendale produces a cross.24:31
Jason Kennedy gives away a free kick for an unfair challenge on Piero Mingoia. Free kick crossed by Luke Joyce, clearance made by Jason Kennedy.23:53
Corner taken right-footed by Danny Schofield from the left by-line, clearance made by Phil Edwards.21:28
Kevin McIntyre fouled by Romuald Boco, the ref awards a free kick. Direct free kick taken by Kevin McIntyre.19:40
Andrew Tutte takes a shot. Save by Ian Dunbavin.15:39
Corner taken right-footed by Danny Schofield from the left by-line to the near post, save made by Josh Lillis. Piero Mingoia takes a shot. Blocked by Dele Adebola.12:53
Foul by Joe Rafferty on Aidan Chippendale, free kick awarded. Free kick crossed left-footed by Lee Molyneux from left wing, save made by Josh Lillis.12:26
Unfair challenge on Rob Atkinson by George Donnelly results in a free kick. Rob Atkinson takes the indirect free kick.11:34
A cross is delivered by Aristote Nsiala, Joe Rafferty manages to make a clearance.8:29
Ashley Grimes takes a shot. Danny Schofield manages to make a clearance. Jason Kennedy decides to take the corner short, Effort on goal by Andrew Tutte from inside the penalty box misses to the right of the target.7:23
Ashley Grimes concedes a free kick for a foul on Peter Murphy. Ian Dunbavin takes the indirect free kick.4:18
Ashley Grimes takes a shot. Save made by Ian Dunbavin.3:42
The ball is swung over by Aidan Chippendale.0:23 Goal scored
Goal! - George Donnelly - Accrington 0 - 1 Rochdale George Donnelly finds the back of the net with a goal from just outside the penalty box high into the middle of the goal. Accrington Stanley 0-1 Rochdale.0:00
The referee starts the match.
Live data and text provided by our data suppliers