Glad you worked it out Adrian! Here are the main areas of interest regarding the codes and syntax.
Cheers,
Dave