Hi, thanks for the quick response. I spent so long on this last night and right after posting this this morning had another crack and got it working!
My ‘Meal Ingredients Database’ first row is a relation to a ‘Meals’ database. My ‘Totals Databse’ first row was a relation to ‘Meal Ingredients Database’. I instead changed this so it was also a relation to to my ‘Meals’ database and the formula worked!