Tom Denton's 89th minute winner booked Chesterfield place in the third round of the FA Trophy.
It helped new boss John Sheridan get his second spell in charge of Spireites off to the perfect start.
Chesterfield FC v Bedford Town, Jerome Binnom-Williams Match photographer Jason Chadwick captured the best of the action in this match gallery.
Chesterfield FC v Bedford Town, Marc Antoine FortuneChesterfield FC v Bedford Town, Jerome Binnom-WilliamsChesterfield FC v Bedford Town, Marc Antoine FortuneChesterfield FC v Bedford Town, Kyel ReidChesterfield FC v Bedford Town, Kyel ReidChesterfield FC v Bedford Town, Joe RowleyChesterfield FC v Bedford Town, Kyel Reid shootsChesterfield FC v Bedford Town, Lee shaw