Ah, I have just started afresh, new database file, new table, new form and the code worked.
I then tried the next stage, to use the WeekDayName function to return the string name of the weekday integer.
This stopped with a type mismatch error. Renamed my table field 'WeekDayName' (doh!) so...