× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi there

How are you actually trying to execute the query, i.e. run the SQL ?

Your best bet might be to use access itself. Start Access, Select Design a
query, select the SQL mode(top left corner) and dump in your SQL to the
editor window. Try and fix the errors you get from there. I've found access
to be somewhat helpful when trying to do this kind of stuff. You can go back
and forth between the design mode and the SQL mode if it helps you get the
right answer.

There is an option to make the query an update query - it's an icon on the
tool bar but the picture escapes (maybe a pen or something) - you may need
to click that icon.

What version of query is the database you are trying to update ? Is Access
trying to save you from yourself and preventing untrusted operations (a most
infuriating feature) ?

Really, to help you we'd need to know how you are trying to run the SQL
statement.

Regards
Evan Harris



-----Original Message-----
From: pctech-bounces@xxxxxxxxxxxx [mailto:pctech-bounces@xxxxxxxxxxxx] On
Behalf Of Antonio Fernandez-Vicenti
Sent: Tuesday, 26 May 2009 3:02 a.m.
To: PC Technical Discussion for iSeries Users
Subject: [PCTECH] PC UPDATEusing MS ACCESS 2002

This thread seems not to have received any answer...
Let me try it again.

FWIW, using WinXP + SP3, MS Office XP (2002) + SP3:

In a small PC project we are using MS Access 2002.
I have an Access table that is partially incorrect in a certain field
values.
I'm trying to UPDATE it, using corrected values from a different but
similar table.

Found in the Archives the following thread, and changed it to fit my needs.

UPDATE Table1 AS t1
SET Vendido = (Select Vendido
from Table2 t2
Where t1.ID = t2.ID)
WHERE EXISTS (Select 1
from Table2 t2
Where t1.ID = t2.ID);

When I try to execute, Access gives me an error "La operacion debe usar
una consulta actualizable" (translate from Spanish, so may not be the
exact english words, but... "Operation must use an updatable query"... )
where Help is of no joy...

Of course, I'm logged as System Administrator, all rights, dedicated
system...
Am I missing something?

Does anybody know if Access 2002 supports this kind of <Update a table
from another table> using EXISTS as suggested for a different case in
the Archives?

Thanks,


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.