473,890 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Operation must be an updateable query

I have been running these queries in Access 2000 with no problems.
This week, I had to install Access 2003 to create some runtime
versions for another application, and now I keep getting "operation
must be an updateable query" messages when I try to run the same old
queries. Here is a sample of one that is no longer working:

UPDATE Personnel INNER JOIN dbo_personnel ON [Personnel].[p#]=
dbo_personnel.[empno] SET personnel.[ss#] = dbo_personnel.[ssn],
Personnel.Sched ule = dbo_personnel.[workschedule], Personnel.Burea u =
dbo_personnel.[DEPTNAME], Personnel.Class ification =
dbo_personnel.[CLASSDESC], personnel.secti ondetail =
dbo_personnel.[Section], personnel.LastN ame = trim( LEFT(
dbo_personnel.[NAME],InStr( dbo_personnel.[NAME],',')-1)),
personnel.First Name = trim(MID( dbo_personnel.[NAME],INSTR(
dbo_personnel.[NAME],',')+1)), personnel.class code =
dbo_personnel.c lasscode, personnel.paygr oup = dbo_personnel.p aygroup,
personnel.hired ate = DateValue(Left( [dbo_personnel].[hiredate],4) &
"/" & Mid( [dbo_PERSONNEL].[hiredate],5,2) & "/" & Right(
[dbo_personnel].[hiredate],2))
WHERE (( dbo_personnel.E MPNO<>"P0") and (
dbo_personnel.E MPNO<>"P00000") ) AND
(
(nz(PERSONNEL.L ASTNAME,'UNKNOW N') <> nz(LEFT(
dbo_personnel.[NAME],InStr( dbo_personnel.[NAME],',')-1),'UNKNOWN'))
or
(nz(PERSONNEL.F IRSTNAME,'UNKNO WN') <> nz(MID(
dbo_personnel.[NAME],INSTR( dbo_personnel.[NAME],',')+1),'UNKNO WN'))
or
(nz(personnel.[SS#],'UNKNOWN')<> nz( dbo_personnel.[SSN],'UNKNOWN'))
OR
(nz(personnel.c lasscode,'UNKNO WN') <> nz(
dbo_personnel.c lasscode,'UNKNO WN')) or
(nz(personnel.c lassification,' UNKNOWN') <> nz(
dbo_personnel.c lassdesc,'UNKNO WN')) OR
(nz(personnel.s ectiondetail,'U NKNOWN') <> nz(
dbo_personnel.s ection,'UNKNOWN ')) or
(nz(personnel.b ureau,'UNKNOWN' ) <> nz(
dbo_personnel.d eptname,'UNKNOW N')) or
(nz(personnel.p aygroup,'UNKNOW N') <> nz(
dbo_personnel.p aygroup,'UNKNOW N')) or

(nz(personnel.s chedule,'UNKNOW N') <> nz(
dbo_personnel.w orkschedule,'UN KNOWN'))
)
WITH OWNERACCESS OPTION;
Personnel and Dbo_personnel are both tables. The queries themselves
have not changed. Something in Access changed but I don't know where
to start. Has anyone seen this happen before?
Nov 13 '05 #1
6 7576

"ano1optimi st" <an**********@a ol.com> wrote in message
news:25******** *************** ***@posting.goo gle.com...
I have been running these queries in Access 2000 with no problems.
This week, I had to install Access 2003 to create some runtime
versions for another application, and now I keep getting "operation
must be an updateable query" messages when I try to run the same old
queries. Here is a sample of one that is no longer working:

UPDATE Personnel INNER JOIN dbo_personnel ON [Personnel].[p#]=
dbo_personnel.[empno] SET personnel.[ss#] = dbo_personnel.[ssn],
Personnel.Sched ule = dbo_personnel.[workschedule], Personnel.Burea u =
dbo_personnel.[DEPTNAME], Personnel.Class ification =
dbo_personnel.[CLASSDESC], personnel.secti ondetail =
dbo_personnel.[Section], personnel.LastN ame = trim( LEFT(
dbo_personnel.[NAME],InStr( dbo_personnel.[NAME],',')-1)),
personnel.First Name = trim(MID( dbo_personnel.[NAME],INSTR(
dbo_personnel.[NAME],',')+1)), personnel.class code =
dbo_personnel.c lasscode, personnel.paygr oup = dbo_personnel.p aygroup,
personnel.hired ate = DateValue(Left( [dbo_personnel].[hiredate],4) &
"/" & Mid( [dbo_PERSONNEL].[hiredate],5,2) & "/" & Right(
[dbo_personnel].[hiredate],2))
WHERE (( dbo_personnel.E MPNO<>"P0") and (
dbo_personnel.E MPNO<>"P00000") ) AND
(
(nz(PERSONNEL.L ASTNAME,'UNKNOW N') <> nz(LEFT(
dbo_personnel.[NAME],InStr( dbo_personnel.[NAME],',')-1),'UNKNOWN'))
or
(nz(PERSONNEL.F IRSTNAME,'UNKNO WN') <> nz(MID(
dbo_personnel.[NAME],INSTR( dbo_personnel.[NAME],',')+1),'UNKNO WN'))
or
(nz(personnel.[SS#],'UNKNOWN')<> nz( dbo_personnel.[SSN],'UNKNOWN'))
OR
(nz(personnel.c lasscode,'UNKNO WN') <> nz(
dbo_personnel.c lasscode,'UNKNO WN')) or
(nz(personnel.c lassification,' UNKNOWN') <> nz(
dbo_personnel.c lassdesc,'UNKNO WN')) OR
(nz(personnel.s ectiondetail,'U NKNOWN') <> nz(
dbo_personnel.s ection,'UNKNOWN ')) or
(nz(personnel.b ureau,'UNKNOWN' ) <> nz(
dbo_personnel.d eptname,'UNKNOW N')) or
(nz(personnel.p aygroup,'UNKNOW N') <> nz(
dbo_personnel.p aygroup,'UNKNOW N')) or

(nz(personnel.s chedule,'UNKNOW N') <> nz(
dbo_personnel.w orkschedule,'UN KNOWN'))
)
WITH OWNERACCESS OPTION;
Personnel and Dbo_personnel are both tables. The queries themselves
have not changed. Something in Access changed but I don't know where
to start. Has anyone seen this happen before?


is sql server back end yes? include key field in query for update to be OK
please.

*Sherwood Wang MVP*

Nov 13 '05 #2
There is a front end application, back end application (tables only),
an Archive database and a workgroup security file. All are in Access
2000 format, no SQL tables, except one linked table. One other unique
thing I noticed is that I'm having difficulty compacting and repairing
one of the access .mdb files all of a sudden. I normally compact and
repair all of the files, including the system.mdw file. This week, I
get a message saying that it cannot complete the process because the
system.mdw is read only. I don't understand this. I can open the
system.mdw file and make changes to it... as I can do with all of the
rest of the databases. How would a database become read-only? I've
checked the file properties of all the files and read-only is not
checked anywhere.

Really appreciate your help.
Nov 13 '05 #3

"ano1optimi st" <an**********@a ol.com> wrote in message
news:25******** *************** ***@posting.goo gle.com...
There is a front end application, back end application (tables only),
an Archive database and a workgroup security file. All are in Access
2000 format, no SQL tables, except one linked table. One other unique
thing I noticed is that I'm having difficulty compacting and repairing
one of the access .mdb files all of a sudden. I normally compact and
repair all of the files, including the system.mdw file. This week, I
get a message saying that it cannot complete the process because the
system.mdw is read only. I don't understand this. I can open the
system.mdw file and make changes to it... as I can do with all of the
rest of the databases. How would a database become read-only? I've
checked the file properties of all the files and read-only is not
checked anywhere.

Really appreciate your help.

many time file is copy from CD so is read only. database not become read
only by magic but by people. open exclusive mode not same as read only OK?
check please MDW make sure is MDW YOU USE. is possible you get confusion
with MDW use wrong MDW.

i no "dbo" is default prefix for sql table! so you query is use sql table
OK? if true put key in query to update.

do get all SP update from Microsoft please. better to go check all things
for corruption 2.

*Sherwood Wang MVP*

Nov 13 '05 #4
I originally thought this had something to do with the fact that I was
receiving an odd message when trying to compact and repair my
databases as I usually do every other week. I got the message
"Microsoft Access can't delete ... system.mdw after compact and
repair. The compacted database has been named ...db1.mdb" It tells
you to remove the read-only status, delete the original database and
then rename the original one or to inform your administrator if you
can not remove the read-only status. I found an archive attribute set
on the databases, not sure how it happened but it was there. So,
after removing it, I was able to compact and repair all databases
without any error messages. However, when I try to run these same
queries that I have been running for months, I get the message that
you are about to run an update query and then get the error message
stating that the "operation must be an updateable query". I am
updating the "personnel" access table using the SQL table
dbo_personnel. I am only reading from the dbo_personnel table, not
updating it. I have refreshed the links on all of my tables but
continue to get this error message. I'm really stumped. Any help is
appreciated.
Nov 13 '05 #5

"ano1optimi st" <an**********@a ol.com> wrote in message
news:25******** *************** ***@posting.goo gle.com...
I originally thought this had something to do with the fact that I was
receiving an odd message when trying to compact and repair my
databases as I usually do every other week. I got the message
"Microsoft Access can't delete ... system.mdw after compact and
repair. The compacted database has been named ...db1.mdb" It tells
you to remove the read-only status, delete the original database and
then rename the original one or to inform your administrator if you
can not remove the read-only status. I found an archive attribute set
on the databases, not sure how it happened but it was there. So,
after removing it, I was able to compact and repair all databases
without any error messages. However, when I try to run these same
queries that I have been running for months, I get the message that
you are about to run an update query and then get the error message
stating that the "operation must be an updateable query". I am
updating the "personnel" access table using the SQL table
dbo_personnel. I am only reading from the dbo_personnel table, not
updating it. I have refreshed the links on all of my tables but
continue to get this error message. I'm really stumped. Any help is
appreciated.

goto ms knowlede base. do search on "operation must be an updateable query"
is many suggestions there for problem. i hope you get good luk!

*Sherwood Wang MVP*

Nov 13 '05 #6

"ano1optimi st" <an**********@a ol.com> wrote in message
news:25******** *************** ***@posting.goo gle.com...
I originally thought this had something to do with the fact that I was
receiving an odd message when trying to compact and repair my
databases as I usually do every other week. I got the message
"Microsoft Access can't delete ... system.mdw after compact and
repair. The compacted database has been named ...db1.mdb" It tells
you to remove the read-only status, delete the original database and
then rename the original one or to inform your administrator if you
can not remove the read-only status. I found an archive attribute set
on the databases, not sure how it happened but it was there. So,
after removing it, I was able to compact and repair all databases
without any error messages. However, when I try to run these same
queries that I have been running for months, I get the message that
you are about to run an update query and then get the error message
stating that the "operation must be an updateable query". I am
updating the "personnel" access table using the SQL table
dbo_personnel. I am only reading from the dbo_personnel table, not
updating it. I have refreshed the links on all of my tables but
continue to get this error message. I'm really stumped. Any help is
appreciated.

goto ms knowlede base. do search on "operation must be an updateable query"
is many suggestions there for problem. i hope you get good luk!

*Sherwood Wang MVP*

Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
902
by: Tom wilson | last post by:
This is driving me nuts. I'm trying to update an Excel spreadsheet using ADO.Net and Oledb in VB.Net. The connection is open, the adapter is connected and the dataset is loaded. Here's the code in question: myDataRow = myDataSet.Tables(0).Rows(RowNum) myDataRow(ColumnCount) = Ailment Adapter.UpdateCommand = New OleDbCommand("UPDATE SET F" & ColumnCount & " = '" & Ailment & "' where F1 = " & RowNum & "", Conn)...
4
6508
by: MDW | last post by:
Hey all. I'm confused. I'm trying to add a single record into an Access 2000 database using ASP.Net. Here is the code: objConn = New OleDbConnection(strConnect) objConn.Open objCommand = New OleDbCommand("INSERT INTO LOGIN_MASTER (LOGIN_ID, PWD, F_NAME, L_NAME, TYPE_ID) VALUES ('" & strEmail & "','" & strPwd & "','" &
606
14834
by: Neil Zanella | last post by:
Hello, I am trying to update an MS access database from ASP.NET. I am using IIS on Windows XP Pro. I can issue SELECT statements from ASP.NET using ADO.NET but I cannot seem to be able to carry out INSERT statements. Here is the error which I am getting: Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
4
2938
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 Object, ByVal e As System.EventArgs) Handles Me.Load Dim strConnection, strSQL As String Dim objDataSet As New DataSet() Dim objConnection As OleDbConnection
2
7517
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 Updateable Query' error. Points: - The database is in my local temp directory, not inetpub - The directory has read/write permissions - The database has read/write permissions - I created another version of the dbase and tried to reference it...
5
1542
by: Web Search Store | last post by:
I'm getting this error on my web page: Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) Operation must use an updateable query. /searchweb33.asp, line 5014 Here is the code producing it:
8
3013
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: ======================================================== ======================================================== Server Error in '/' Application. -------------------------------------------------------------------------------- Operation must use an updateable query. Description: An unhandled exception occurred during...
11
3975
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 generates the following error: Operation must use an updateable query. pointing to a line that says
1
2761
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 whenever i am trying to run this application then it through the exception. I have used MS Access as a database. The error is as follows... Server Error in '/ASG' Application....
0
9975
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9812
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11212
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10446
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8004
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5832
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6032
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.