@Guus2005: Probably your ideea works, but it would generate manny vba extra lines.... My workaround generates only 1: the maketable.
@vbaInet: As I mentioned, it is a Select top 1, because if the date in one line is correct, they all are (for one column), so the dcount checks if the 1 record...