Access 2007 – Left Join to a query returns #Error instead of Null

While the query should return Null based on the join type, as Allen Browne states in his article, Bug: Outer join expressions retrieved wrongly, “Instead, it behaves as if [the JET query optimizer] is evaluating the expression after it has returned the results from the lower-level query.” Consequently, you must select the calculated field using … Read more

Use SELECT inside an UPDATE query

Well, it looks like Access can’t do aggregates in UPDATE queries. But it can do aggregates in SELECT queries. So create a query with a definition like: SELECT func_id, min(tax_code) as MinOfTax_Code FROM Functions INNER JOIN Tax ON (Functions.Func_Year = Tax.Tax_Year) AND (Functions.Func_Pure <= Tax.Tax_ToPrice) GROUP BY Func_Id And save it as YourQuery. Now we … Read more