Albert Kallal (Access MVP)
unread,Feb 27, 2021, 9:13:48 PM2/27/21You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Well, for a test that say takes 2 minutes or less?
Try linking to the one table from access. Then simple click on that linked table, and see if you can edit or update the row.
its possible that the table does not have a PK, and thus Access can't as a general rule update such linked tables, and thus you in code not using a linked table would also have the same issue. As for not using linked tables? (well, we will just leave the why not for another day - but as such it does not make a whole lot of sense).
It also possible that you are trying to operate against a view, and those tend to be even more problematic, since once again access will see such views as read only. And this again is due to the views not having a defined PK row. (in fact there is NO way to even define a pk for a view in SQL server. So, what occurs when you link to a view is a prompt appears, and you have to selected the PK row. Once you linked the view with a PK "set", then again you are able to update.
So, I would spend the whole 1.5 minutes, link to that table, and see if you can edit that row in question. If you can, then you of course can then delete that linked table and go back to testing your code. But, if you can't update rows with that simple linked table, then you not going to have any greater success attempting the same with VBA code to do the same.
so does the 1.5 minute test of linking a table and trying to update a row by simple click on the linked table and trying to edit a row work?
Regards,
Albert D. Kallal (Access MVP 2003-2017)
Edmonton, Alberta Canada