• Finally cracked it; used LastPeriods(@LagMonths,StrToMember(@FirstDate))

    Thank you for your help


    All the best,

    Duncan