What are some possible reasons for an update query not working

Mitt1

Registered User.
Local time
Today, 08:48
Joined
Apr 20, 2016
Messages
19
I have an update query, that for some reason only updates some data and not others. Any explanation as to why this may be
 
You are giving us not a lot of information. A little like: why are birds sometimes not flying... ;-)
You can help yourself by adding a little more information here.
Errormessage maybe? Or more a description what the query looks like and what goes wrong

What I recently did was to change in the query builder the "update" to "select" and checked when and why it was not possible to add or change values.
Start first with the most simple query you can think of and increase slowly the complexity until the query fails to change values (recordset not updatable message if I am not wrong)
Or the other way around: take away parts of the query until the query is working normal.
Simplify to find the culprit
 
I would have thought that the data did not meet the criteria.?

As mentioned change it to a select and see what is produced and then look at what is missed.

I have just had a situation where a query that has worked for the last few years produced errors this year. That was down to incorrect data.
 
If the query is a single-table query with a WHERE clause, the problem can be an overly restrictive WHERE clause that eliminates the whole table.

If the query is based on updating via a JOIN, it is possible that nothing matches the OUTER JOIN requirements.

If you have warnings disabled, it could be a syntax error in the query itself.

Without knowing more about the query and the surroundings, it will be EXTREMELY hard to diagnose this problem.
 

Users who are viewing this thread

Back
Top Bottom