In your comment you mentioned that [Client Codes for dealing]
is a Union query. Anytime a UNION query is involved, the entire query is made read-only (see Why is my query read-only?).
The simplest thing to do is to turn your UNION query into a make-table query, then replace the name of the UNION query with the name of the temporary local table created by the make-table query.