Fixed
Okay, crisis over.
I realised that my problem was actually the fact that my query was referencing a form field in the way Forms!frmHDSearch!txtNum and have since discovered that this does not work in the code.
So I have conceded defeat and created another query that accepts a parameter...