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...

9. Theo Corbeanu - 7
A livewire. Beyond his emphatically-take goal, he was a regular threat, driving and jinking and asking questions of Accrington time and again. Questions could be asked of his defensive aptitude, for which he was hooked after the hour. Photo: George Wood

10. Florian Kamberi - 7
Had the ball in the net early but was ruled out for offside. Bustled around brilliantly and got reward for his effort by lifting the ball beautifully over Trafford's head. Photo: Steve Ellis

11. Callum Paterson - 7
Back up top in another positional switch, would have had an assist were it not for the flag. Bounced around and forced a good save at close range shortly after Stanley's goal but wasted a chance or two. Workmanlike. Photo: Steve Ellis

12. Jaden Brown - 6
On for Corbeanu after the hour. Forced Trafford into a front post save from Paterson's nudge-on. Photo: Steve Ellis

