Substitute Padraig Amond's last-minute strike gave Accrington all three points against Aldershot.
Stanley could have gone in front early on but Lee Molyneux's inswinging corner was cleared off the line.
The goal came when Amond poked home his fourth of the campaign after Shots goalkeeper Jamie Young failed to deal with a high ball.
The visitors misery was compounded in injury-time when Peter Vincenti was sent off for violent conduct.
VIEWS FROM THE DRESSING ROOM
Aldershot Town manager Dean Holdsworth told BBC Surrey:
"We worked extremely hard to get something and having looked at it (the goal) again it's a foul on Jamie Young, no attempt to play the bal. It's a cruel way to come all this way and work so hard.
"You want the referee to do his job properly and I think he got affected by the crowd a lot and their bench and I think that decision going against us is a poor decision.
"The fella has not played for the ball and has just run to obstruct Jamie Young and I don't know why he hasn't given it, but I'm disappointed to lose this game when we worked so hard.
"Well I saw it (sending off) and Peter can't react like that, he'll get punished and he can't allow the emotions to over boil and I'm disappointed as we'll lose him for three games."