I have been battling with this problem for hours, and would be incredibly grateful if someone could enlighten me as to what I am doing wrong. I want to build a query that displays identifying records from one query, excluding those that are in another query. Internet research and the unmatched query wizard suggested that the solution would be to use a left outer join, with the query on the right having a criterion of "Is Null". This query (shown below) returned a data mismatch error, although the root tables of both are text format.
To try and find out the cause, I removed the filter criterion and added the field 'qryReprocessedBatches.BatchNumber'.The records that were in qryFBatchMakeup but not qryReprocessedBatches were displayed as '#Error#', although I cannot find any logical reason why this isn't null. Anyone have any ideas why this is not working or know a way I could investigate the nature of the errors?
Code:
SELECT qryFBatchMakeup.BatchNumber
FROM qryFBatchMakeup
LEFT JOIN qryReprocessedBatches
ON qryFBatchMakeup.BatchNumber = qryReprocessedBatches.BatchNumber
WHERE (((qryReprocessedBatches.BatchNumber) Is Null));
To try and find out the cause, I removed the filter criterion and added the field 'qryReprocessedBatches.BatchNumber'.The records that were in qryFBatchMakeup but not qryReprocessedBatches were displayed as '#Error#', although I cannot find any logical reason why this isn't null. Anyone have any ideas why this is not working or know a way I could investigate the nature of the errors?