Is the sql statement for the SQL database or the access database? There is some differences betwen the two.