Does anyone know a work around for casting in a union query in Access. I am trying to do a report using ADO and I would like to use a query. When I create my union query, I want fields seperated
SELECT
Name
Gift Date
Gift Amount
Null
Null
From Folder, gift (blah, blah)
UNION
SELECT
Name
Null
Null
Pledge Date
Pledge Amount
FROM Folder, pledge (blah, blah).
I can retrieve the information from the first query perfectly but the information from the second query (where the nulls are involved) come up garbage.
In SQL, you can just cast the null placeholders to the field type you desire.
Has anyone been successful doing this with Access?
Thanks in advance.
SELECT
Name
Gift Date
Gift Amount
Null
Null
From Folder, gift (blah, blah)
UNION
SELECT
Name
Null
Null
Pledge Date
Pledge Amount
FROM Folder, pledge (blah, blah).
I can retrieve the information from the first query perfectly but the information from the second query (where the nulls are involved) come up garbage.
In SQL, you can just cast the null placeholders to the field type you desire.
Has anyone been successful doing this with Access?
Thanks in advance.