I have a number of update queries, similar to the code below, that operate normally, update the table as expected, if I open them manually but do nothing if opened with code.
I have tried "docmd.openquery" and "Currentdb.execute" with the same result, the table "Main" is not updated.
	
	
	
		
 I have tried "docmd.openquery" and "Currentdb.execute" with the same result, the table "Main" is not updated.
		Code:
	
	
	UPDATE Main INNER JOIN TableTemp ON Main.AccessionNumber = TableTemp.AccessionNumber SET Main.SpeciesEpithet = [TableTemp]![SpeciesEpithet]
WHERE (((TableTemp.SpeciesEpithet)>"") AND ((Main.AccessionNumber)=[TableTemp]![AccessionNumber]));