Farsley AFC will host Lancaster City in the quarter-finals of the Doodson Sport Cup next month.
Farsley had to come back from behind to beat Sheffield FC last week to make the last eight.
Sheffield were leading 2-0 at half-time before Farsley mounted a comeback.
Gibraltar striker Adam Priestley got two with Lewis Nightingale and Josh Grant adding the other two.
Farsley are into the last eight for the second time in three years.
Neil Parsley’s men lost 3-1 at Matlock Town in a controversial quarter-final in March 2013.
Harrogate Railway are still in the competition, but their third round tie with Spennymoor Town has been postponed twice.
Rail are due to try again on Monday and a win will book a tie with either Ramsbottom or Northwich.