G
Guest
There is some VBA code (Access2k, Win2k, ODBC linked SQL
Server tables) that has run perfectly for a weekly process
6 times. The 7th run had an error with the following
message: "Runtime error 3073, Operation must use an
updatable query"
The code runs if tables are imported into Access on a
local machine and I found that one of the lookup tables
was the problem. The table had an identity field but no
primary key and someone added records that were duplicates
in the identity field. No updates were being made to this
table, only lookups and the code got wrong answers and
even a simple query would not run properly even though the
identity field was not used as one of the criteria.
Everything is fixed and works again but I find this
troubling, so I ask the following questions:
1) How can a query return records that do not match the
specified criteria under any circumstances? (Even duped
ids did not match)
2) Why would the code run with native access tables but
not SQL Server links?
3) Why is a non-duplicated id field required to do lookups?
4) This exasperating experience has taught me that all SQL
Server tables need a non-duplicated id field. Did I learn
the right lesson? What else should I learn from this
experience?
Thanks,
al
Server tables) that has run perfectly for a weekly process
6 times. The 7th run had an error with the following
message: "Runtime error 3073, Operation must use an
updatable query"
The code runs if tables are imported into Access on a
local machine and I found that one of the lookup tables
was the problem. The table had an identity field but no
primary key and someone added records that were duplicates
in the identity field. No updates were being made to this
table, only lookups and the code got wrong answers and
even a simple query would not run properly even though the
identity field was not used as one of the criteria.
Everything is fixed and works again but I find this
troubling, so I ask the following questions:
1) How can a query return records that do not match the
specified criteria under any circumstances? (Even duped
ids did not match)
2) Why would the code run with native access tables but
not SQL Server links?
3) Why is a non-duplicated id field required to do lookups?
4) This exasperating experience has taught me that all SQL
Server tables need a non-duplicated id field. Did I learn
the right lesson? What else should I learn from this
experience?
Thanks,
al