473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Question: Must use an updateable query??

105 100+
Hey guys,

I have a query that when i try and run it in code,

DoCmd.SetWarnings False
DoCmd.OpenQuery "qryOutageCMICheck"
DoCmd.SetWarnings True

It gives me an error, "Must use an updateable query"

Why would this be the case? Here's my query...

Expand|Select|Wrap|Line Numbers
  1. UPDATE qryOutageCMISum INNER JOIN tblOutages ON qryOutageCMISum.CaseNumber = tblOutages.CaseNumber SET tblOutages.Findings = "Outage did not meet minimum requirements for review", tblOutages.Printed = True, tblOutages.Status = 4
  2. WHERE (((tblOutages.chkOutages)=True) AND ((qryOutageCMISum.SumOfCMI)>=25000));
Here's the qryOutageCMISum,

Expand|Select|Wrap|Line Numbers
  1. SELECT tblOutages.CaseNumber, Count(tblOutages.RefNumber) AS CountOfRefNumber, Sum(tblOutages.CMI) AS SumOfCMI
  2. FROM tblOutages
  3. GROUP BY tblOutages.CaseNumber
  4. HAVING (((Sum(tblOutages.CMI))>=25000));
Thanks!!!!!

-Joseph
May 27 '08 #1
2 1366
RuralGuy
375 Expert 256MB
See if this link helps a bit.
May 28 '08 #2
missinglinq
3,532 Expert 2GB
It gives me an error, "Must use an updateable query"
Why would this be the case?
Allan's given you a link to Allen's excellent explanation of what make's a query non-updateable, and the answer to your question of "Why would this be the case?" is that it has to be updateable because you're trying to do an update!

Linq ;0>
May 28 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Steve | last post by:
I have a products table where the PK is ProductID. Also have the standard Orders table and OrderDetails table. I created a query that joins the Orders table and OrderDetails table. The query...
3
by: Ray | last post by:
I have below query in Access 97 but it is not updateable by entering or editing data in the query. Can someone advise how to modify it to be updateable one. SELECT .PCode, .Model, .Description,...
1
by: Edward | last post by:
I've recently migrated the back end of one of my client's applications from Access to SQL Server. One of the forms is based on an Access query thus: SELECT dbo_tblDistributionDetail.*,...
4
by: Jim in Arizona | last post by:
Continuing my lessons out of a book, I ran into a problem when trying for the first time to update a datastore (access database in this case). My Code: Private Sub Page_Load(ByVal sender As...
2
by: SheryMich | last post by:
Hi - I am having a bit of a problem with the insert into a database. When I go to insert a record into an un-keyed, single table Access database, I get the aforementioned ''Operation Must Use an...
8
by: Jim in Arizona | last post by:
I've been using an example out of a book to be able to edit the rows in a database. I am getting the following error: ========================================================...
1
by: Matt | last post by:
I am writing a DELETE statement and I want to filter the records using another SELECT statement. My SELECT statement is a GROUP BY query that grabs all social security numbers from the "Data...
11
by: Arpan | last post by:
I have always been working with SQL Server 2005 for ASP.NET apps but due to some reasons, had to revert back to MS-Access 2000. When I try to insert/update a MS-Access DB table (MDB), ASP.NET...
1
by: pavya | last post by:
Hi, I have developed one Web application. At that time my system had a FAT file system on it and this application worked properly. But now i have converted FAT file system to NTFS file system and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.