Ethan Bamber took his maiden five-wicket haul for Middlesex as they drew with Derbyshire on a the final day.
A wet outfield caused a delayed start but right-arm seamer Bamber removed Harvey Hosein for 57 early after lunch.
Following a break for bad light and rain, Fynn Hudson-Prentice and Matthew Critchley also fell to Bamber (5-93).
Leus du Plooy (100 not out) reached his century but the two captains shook hands when the rain returned shortly after tea, with Derbyshire 304-7.
The visitors finish seventh in Division Two on 145 points, with Middlesex one place and 12 points behind them.