Solved

Microsoft Access 2010 Update Statement not updateable.

Posted on 2013-01-16
3
362 Views
Last Modified: 2013-01-16
I cannot understand what Access means when it says this statement must use an updateable query.

t2 has one row, t3 has three rows.

update t2 set sys_id = (select max(sys_id) + 1 from t3)

Is there a way to make this work in Access 2010?
0
Comment
Question by:claghorn
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 38783378
maybe

update t2,t3 set sys_id = dmax("sys_id","t3") +1
0
 

Author Closing Comment

by:claghorn
ID: 38783512
I used this thanks.

update t2 set t2.sys_id = dmax("sys_id","t3") +1
0
 
LVL 77

Expert Comment

by:peter57r
ID: 38783546
Any update query which involves an sql  'Group By' or any sql aggregate  function Max(), Min() Avg() etc will not work in Access.  It gives the message you have seen.

The workaround is often to use domain functions DMax() , DMin(), DAvg() etc as in the solution  posted by Capricorn1.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question