After testing a little bit more, found out that the next button doesn't work either, and now I am getting this error when I click next or download:

Error # (Get_RS_OPEN - After open TOP SQL) = 80040E07(-2147217913)
Description = [Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = 22008
Native Error = 242

There are no char values - all datatypes al varchar, and one is datetime, and that should remain datetime.