Using ODBC Connection Query Error: Non-Updatable Query

G

Guest

A query was running using a linked table to an Access database. The query
linked an access table from the current database and uptated that table with
data from the linked table. We then used an ODBC connection to linke to SQL
Server to obtain the required information to update the Access table in the
current database. An error was displayed: Non-Updatable Query. We then
imported the table and the query worked. Is there a way to modify the
connection so we can still use linked tables to the ODBC data source ?
 
G

Guest

Does Access recognize a primary key in the linked ODBC table? If not, you
will need to create one. This can be done with a data definition query within
Access.
 
G

Guest

I created a primary key on the SQL table but the query still failed with the
same message. The code is listed below. Local Custsupp File is the SQL
table. The primary key was created on field "code". Is there something else
that needs to be done ?

UPDATE [Contract Renewal Analysis] INNER JOIN [Local Custsupp File] ON
[Contract Renewal Analysis].CODE = [Local Custsupp File].code SET [Contract
Renewal Analysis].[Aggregate Billing] = [Local Custsupp File]![consbill];
 
G

Guest

Where did you create the primary key on the SQL table? If you did this on the
actual server, did you relink the table so Access can see the primary key? If
you open the linked table in design view, is the primary key identified?
--
Duane Hookom
Microsoft Access MVP


rmcompute said:
I created a primary key on the SQL table but the query still failed with the
same message. The code is listed below. Local Custsupp File is the SQL
table. The primary key was created on field "code". Is there something else
that needs to be done ?

UPDATE [Contract Renewal Analysis] INNER JOIN [Local Custsupp File] ON
[Contract Renewal Analysis].CODE = [Local Custsupp File].code SET [Contract
Renewal Analysis].[Aggregate Billing] = [Local Custsupp File]![consbill];




Duane Hookom said:
Does Access recognize a primary key in the linked ODBC table? If not, you
will need to create one. This can be done with a data definition query within
Access.
 
G

Guest

When I re-linked the table, it worked. Thanks for the help.


Duane Hookom said:
Where did you create the primary key on the SQL table? If you did this on the
actual server, did you relink the table so Access can see the primary key? If
you open the linked table in design view, is the primary key identified?
--
Duane Hookom
Microsoft Access MVP


rmcompute said:
I created a primary key on the SQL table but the query still failed with the
same message. The code is listed below. Local Custsupp File is the SQL
table. The primary key was created on field "code". Is there something else
that needs to be done ?

UPDATE [Contract Renewal Analysis] INNER JOIN [Local Custsupp File] ON
[Contract Renewal Analysis].CODE = [Local Custsupp File].code SET [Contract
Renewal Analysis].[Aggregate Billing] = [Local Custsupp File]![consbill];




Duane Hookom said:
Does Access recognize a primary key in the linked ODBC table? If not, you
will need to create one. This can be done with a data definition query within
Access.
--
Duane Hookom
Microsoft Access MVP


:

A query was running using a linked table to an Access database. The query
linked an access table from the current database and uptated that table with
data from the linked table. We then used an ODBC connection to linke to SQL
Server to obtain the required information to update the Access table in the
current database. An error was displayed: Non-Updatable Query. We then
imported the table and the query worked. Is there a way to modify the
connection so we can still use linked tables to the ODBC data source ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top