Solved

Microsoft Access 2010 Update Statement not updateable.

Posted on 2013-01-16
3
363 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

690 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