I wouldn't have expected that you'd need (or want) a CDate conversion of whatMax returns, as it should already be a date.What happens if you remove it?