I have created a query called CPARTY2 with the relevant details in it and referenced this in the form - so the formula now looks like this:
=DLookUp("CODE","[CPARTY2]","[CPARTY2].[NAME]=Forms![BU]![Business Unit]")
The #error message on the form has gone - but the form is not automatically...