R
Ron Hinds
Well actually it's a SQL Server View, but Access treats them as tables,
anyway. Here's my problem: I have a SQL statement that is UPDATEing a local
Access table with data from a SQL Server view. When I initially linked the
view, Access prompted me to choose a unique field, which I did. Everything
was fine until the first time I re-linked (in code) to the production server
(DSN-less connection). When relinking in this manner, you aren't prompted
for any unique fields. So now when I run the SQL statement, I get an Access
error "Operation must use an updateable query" - even though I'm not
updating any fields in the view, only the local table. So, the question is:
1) Is there a way to define an index on the view when I'm relinking in code;
or 2) Is there another way around this? TIA!
anyway. Here's my problem: I have a SQL statement that is UPDATEing a local
Access table with data from a SQL Server view. When I initially linked the
view, Access prompted me to choose a unique field, which I did. Everything
was fine until the first time I re-linked (in code) to the production server
(DSN-less connection). When relinking in this manner, you aren't prompted
for any unique fields. So now when I run the SQL statement, I get an Access
error "Operation must use an updateable query" - even though I'm not
updating any fields in the view, only the local table. So, the question is:
1) Is there a way to define an index on the view when I'm relinking in code;
or 2) Is there another way around this? TIA!