A serial burglar terrified staff when he tried to smash his way into a shop with a hammer.
Samuel Walker, who has a record of 24 previous offences of burglary, intended reaching through into the Lidl store at Cleveleys and stealing expensive bottles of alcohol.
Walker, 47, of Northridge Road, Manchester, pleaded guilty to attempted burglary.
He was remanded in custody to appear for sentence at Preston Crown Court on April 29 by Blackpool magistrates.
Pam Smith, prosecuting, said an assistant manager was working in Lidl when she saw Walker wearing a hoodie pulled over his face, repeatedly hitting the window on April 7 about 5am.
She and another staff member ran upstairs, locked themselves in an office, alerted police and watched Walker on the CCTV. David Charnley, defending, said Walker had been driving past the shop. He saw the lights were on and spotted the alcohol.