SQL UNION query as recordsource for a report
Posted on 1998-09-01
I have a Union query, not too complex, which I am trying to use as a recordsource for a simple report. The query runs fine from the database window. When I specify it as the recordsource for the report, and try to run the report, I get the error message "Jet database engine could not execute the SQL statement because it contains a field that has an invalid datatype". The help file behind this message doesn't help me. Not sure how to debug this problem. All of the fields in the query have fields on the report. Each of the two queries that make up the UNION query work fine as the recordsource for the report! SOmething weird with the report not liking the UNION.