sql - Why would my Access 2007 query suddenly become not updateable? -
i have query in access 2007. it's worked fine months, i'm getting "the recordset not updateable" error. thinking error must have been caused recent change, went archived versions (that definitley worked) - they're chucking out same error. table updatable; indeed, query on same table works fine. have happened break query? code follows:
select prospects.company, contactnames.*, iif([prospects]![key contact]=[contactid],true,false) [key contact], prospects.status contactnames inner join prospects on contactnames.companyid=prospects.id (((prospects.status) not "duplicate"));
any appreciated. thanks, oli.
if using linked odbc tables, need include primary key field(s) tables in query if want query updateable. here potential "gotchas":
- access may not recognize primary key fields correctly in linked odbc table; (always?) access picks first unique index finds table (based on alphabetical order of index name) , assumes index primary key
- adding replication tables in ms sql server (and perhaps other rdbms's) add guid column unique index; along above point, can cause access think linked tables have different primary keys do
- changes made design of odbc linked tables not automatically reflected in access; linked odbc tables can refreshed via tools --> database utilities --> linked table manager... (among other ways)
Comments
Post a Comment