Amanda, you are an absolute star, I can’t thank you enough. After modifying the code to suite it has worked perfectly.
It has however created a small problem, this particular repeater is limited to 6 events in the dataset settings and also sorted from old to new via start date of event.
Since inputting the code it now seems to override those settings and show all the events in the repeater and its also ignoring the sort setting.
Is there a way for this to honour the dataset settings?
Thanks