The Owls were 3-0 up and cruising after just 22 minutes thanks to goals from Chey Dunkley, Theo Corbeanu and Florian Kamberi.
But old habits die hard and Wednesday gave the home side a sniff of an opening when Lewis Mansell pulled one back for Stanley on 33 minutes.
Eight minutes into the second half on loan Burnley man Joel Mumbongo made it 3-2 and from then on Wednesdayites will have been fearing the worst.
There were a few hair-raising moments but the Owls managed to hang on for all three points and only their second League One win since the start of October.
Here's how we rated the Wednesday players...

5. Jack Hunt - 6
Playing in a protective sheath on his broken hand, blitzed his way into the Accrington half on occasion and offered a calming presence alongside young Brennan. Photo: Steve Ellis

6. Fisayo Dele-Bashiru - 6
What he did, he did quietly, but offered physicality and a presence in midfield. Photo: Steve Ellis

7. Massimo Luongo - 7
Yellow carded early in an attempt to break up a Stanley attack. While others may catch the eye more easily, do not underestimate Luongo's impact on this side. Plays an important defensive role, obviously, but allows those in front of him to flow forward with abandon. If he can stay fit, expect Bannan's numbers to rocket. Photo: George Wood

8. Barry Bannan - 7
At the heart of things. As ever, when Wednesday were good, he was invariably there. Pushed the ball about with class and could have scored himself were a second half ball a little closer. Could be unleashed by Luongo's return. Photo: Steve Ellis

