Both the above codes work, thanks both for your help.
My concern is what's causing this one form to not accept the same VB code as all other forms.
As a test I've just created a blank form in the database, added just a button and a Ref1Date textbox, added the original On Click code but when I click on the button nothing happens, not even an error message.
Soooooo confused!