In Access, I have a table that receives data from Excel. I have a second table that has one of its fields changed based on a comparison to the first table. The update query is as follows:
This works like a charm as long the QTY values in both tables are non-zero. If both tables have a zero value, it returns false and marks as shipped. Why does zero not equal zero? There does not seem to be a rounding error either (I've looked at the Excel data out to 35 decimal places, and there are no calculations performed on the QTY value). I've tried text and number data types in Access, and I've tried changing the data types in Excel to match the Access fields before the import. No dice. What am I missing?
Thank you.
Code:
UPDATE OpenReqs
LEFT JOIN DownloadedReqs
ON (([OpenReqs].[SUF]=[DownloadedReqs].[SUF])
Or ([OpenReqs].[SUF] Is Null))
AND (([OpenReqs].[DOC NO]=[DownloadedReqs].[DOC NO])
And ([OpenReqs].[STOCK NO]=[DownloadedReqs].[STOCK NO])
And ([OpenReqs].[QTY]=[DownloadedReqs].[QTY])
And ([OpenReqs].[TRR]=[DownloadedReqs].[TRR]))
SET OpenReqs.SHIPPED = Yes
WHERE (([DownloadedReqs].[DOC NO]) Is Null);
Thank you.
Comment