I am not able to find an answer online and pretty stumped by the following issue: I’m trying to us an update query to update date field from one table into another. Both fields have the same “date/time” data type. When I create an update query it returns blank values….copy of the SQL code below
UPDATE [MIDs with comments] INNER JOIN [account status for MIDs with comments table]
ON [MIDs with comments].[Merchant Number] =
[account status for MIDs with comments table].[Merchant Number]
SET [MIDs with comments].[Account Open Date] =
[account status for MIDs with comments table].[ACCT_OPEN_DT];
I’m not sure what I am doing wrong here as the query seems pretty simple. When I do regular select query it returns values without any problems..
Please help.
I’m puzzled about what you meant when you said your
UPDATEquery “returns blank values“. AnUPDATEquery does not return values, blank or otherwise.If you’re using Access’ query designer to build your query, then switching to Datasheet View, that does not actually execute the query. To execute it, click the Run icon (red exclamation point).
If that wasn’t the explanation, I’ll suggest you save your query then try this in the Immediate window (you can go there with Ctrl+g).
If the
.Executeline throws an error, tell us the full text of the error message.If no error, perhaps
RecordsAffectedwill be zero. In that case we will need to investigate further to determine why no records were updated.