Rotherham's faltering promotion push suffered another setback with a 2-1 defeat at Accrington.
Michael Symes' close-range opener was cancelled out by Josh Walker but the Millers crashed to a third defeat in four games when Jimmy Ryan drilled home Stanley's winner 11 minutes from time.
Jim Bentley headed in Simon Hackney's cross to earn Morecambe a 1-0 win at Hereford.
Meanhwhile on-loan Leeds forward Davide Somma cancelled out Jon Nurse's opener to earn Lincoln a 1-1 draw at home to Dagenham and Redbridge.