473,378 Members | 1,372 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,378 software developers and data experts.

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.Schedule = dbo_personnel.[workschedule], Personnel.Bureau =
dbo_personnel.[DEPTNAME], Personnel.Classification =
dbo_personnel.[CLASSDESC], personnel.sectiondetail =
dbo_personnel.[Section], personnel.LastName = trim( LEFT(
dbo_personnel.[NAME],InStr( dbo_personnel.[NAME],',')-1)),
personnel.FirstName = trim(MID( dbo_personnel.[NAME],INSTR(
dbo_personnel.[NAME],',')+1)), personnel.classcode =
dbo_personnel.classcode, personnel.paygroup = dbo_personnel.paygroup,
personnel.hiredate = DateValue(Left( [dbo_personnel].[hiredate],4) &
"/" & Mid( [dbo_PERSONNEL].[hiredate],5,2) & "/" & Right(
[dbo_personnel].[hiredate],2))
WHERE (( dbo_personnel.EMPNO<>"P0") and (
dbo_personnel.EMPNO<>"P00000")) AND
(
(nz(PERSONNEL.LASTNAME,'UNKNOWN') <> nz(LEFT(
dbo_personnel.[NAME],InStr( dbo_personnel.[NAME],',')-1),'UNKNOWN'))
or
(nz(PERSONNEL.FIRSTNAME,'UNKNOWN') <> nz(MID(
dbo_personnel.[NAME],INSTR( dbo_personnel.[NAME],',')+1),'UNKNOWN'))
or
(nz(personnel.[SS#],'UNKNOWN')<> nz( dbo_personnel.[SSN],'UNKNOWN'))
OR
(nz(personnel.classcode,'UNKNOWN') <> nz(
dbo_personnel.classcode,'UNKNOWN')) or
(nz(personnel.classification,'UNKNOWN') <> nz(
dbo_personnel.classdesc,'UNKNOWN')) OR
(nz(personnel.sectiondetail,'UNKNOWN') <> nz(
dbo_personnel.section,'UNKNOWN')) or
(nz(personnel.bureau,'UNKNOWN') <> nz(
dbo_personnel.deptname,'UNKNOWN')) or
(nz(personnel.paygroup,'UNKNOWN') <> nz(
dbo_personnel.paygroup,'UNKNOWN')) or

(nz(personnel.schedule,'UNKNOWN') <> nz(
dbo_personnel.workschedule,'UNKNOWN'))
)
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 7537

"ano1optimist" <an**********@aol.com> wrote in message
news:25**************************@posting.google.c om...
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.Schedule = dbo_personnel.[workschedule], Personnel.Bureau =
dbo_personnel.[DEPTNAME], Personnel.Classification =
dbo_personnel.[CLASSDESC], personnel.sectiondetail =
dbo_personnel.[Section], personnel.LastName = trim( LEFT(
dbo_personnel.[NAME],InStr( dbo_personnel.[NAME],',')-1)),
personnel.FirstName = trim(MID( dbo_personnel.[NAME],INSTR(
dbo_personnel.[NAME],',')+1)), personnel.classcode =
dbo_personnel.classcode, personnel.paygroup = dbo_personnel.paygroup,
personnel.hiredate = DateValue(Left( [dbo_personnel].[hiredate],4) &
"/" & Mid( [dbo_PERSONNEL].[hiredate],5,2) & "/" & Right(
[dbo_personnel].[hiredate],2))
WHERE (( dbo_personnel.EMPNO<>"P0") and (
dbo_personnel.EMPNO<>"P00000")) AND
(
(nz(PERSONNEL.LASTNAME,'UNKNOWN') <> nz(LEFT(
dbo_personnel.[NAME],InStr( dbo_personnel.[NAME],',')-1),'UNKNOWN'))
or
(nz(PERSONNEL.FIRSTNAME,'UNKNOWN') <> nz(MID(
dbo_personnel.[NAME],INSTR( dbo_personnel.[NAME],',')+1),'UNKNOWN'))
or
(nz(personnel.[SS#],'UNKNOWN')<> nz( dbo_personnel.[SSN],'UNKNOWN'))
OR
(nz(personnel.classcode,'UNKNOWN') <> nz(
dbo_personnel.classcode,'UNKNOWN')) or
(nz(personnel.classification,'UNKNOWN') <> nz(
dbo_personnel.classdesc,'UNKNOWN')) OR
(nz(personnel.sectiondetail,'UNKNOWN') <> nz(
dbo_personnel.section,'UNKNOWN')) or
(nz(personnel.bureau,'UNKNOWN') <> nz(
dbo_personnel.deptname,'UNKNOWN')) or
(nz(personnel.paygroup,'UNKNOWN') <> nz(
dbo_personnel.paygroup,'UNKNOWN')) or

(nz(personnel.schedule,'UNKNOWN') <> nz(
dbo_personnel.workschedule,'UNKNOWN'))
)
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

"ano1optimist" <an**********@aol.com> wrote in message
news:25**************************@posting.google.c om...
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

"ano1optimist" <an**********@aol.com> wrote in message
news:25**************************@posting.google.c om...
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

"ano1optimist" <an**********@aol.com> wrote in message
news:25**************************@posting.google.c om...
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
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...
4
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 =...
606
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...
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...
5
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...
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: ========================================================...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.