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

Jet DB Engine and parameterized UPDATE query

Hi all.

I am having a strange problem.

I am developping an application that acceses an Access db through Jet
(.UDL files).

I have writen parametric INSERT queries that work fine.
I am now trying to write a parametric UPDATE query but I always get a
return error code that the language manual translates to:

Exception occurred in Microsoft JET Database Engine, Operation must use
an updateable query.

I have looked at file and directory permissions, but everything looks
ok.

Does anyone have any clues to why parametric INSERT works and UPDATE
does not?

Thanks in advance.

G.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Nov 13 '05 #1
4 4320
how about posting your code and SQL statement... I see no reason why a
parameterized update query wouldn't work...

Nov 13 '05 #2
Access has some irritating habits that make little sense when it comes
to UPDATE queries.
If any portion of the recordset is not updateable you get that
'Operation must use an updateable query' message.
For example you may have an outer join, or a linked read only table, or
a non-updateable query joined to the table you are trying to update.
Even though you are not updating the non-updateable items, access won't
let you do it.
My solutions have been to put sql in an IN statement to limit the
recordset instead of a join, or to make a temp table (which I detest).
HTH
P

Nov 13 '05 #3
"pietlinden" <pi********@hotmail.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com
how about posting your code and SQL statement... I see no reason why a
parameterized update query wouldn't work...

Not very simple since I am working in LabView.
It actually uses ADO underneath, so I copied the function from the
INSERT query (that works perfectly) and modified the SQL statement
generation. I did not touch the ADO calls that build the parametric
query.
G.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Nov 13 '05 #4
"dedejavu" <de******@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com
Access has some irritating habits that make little sense when it comes
to UPDATE queries.
If any portion of the recordset is not updateable you get that
'Operation must use an updateable query' message.
For example you may have an outer join, or a linked read only table, or
a non-updateable query joined to the table you are trying to update.
Even though you are not updating the non-updateable items, access won't
let you do it.
My solutions have been to put sql in an IN statement to limit the
recordset instead of a join, or to make a temp table (which I detest).
HTH
P

Non of these things!

I am trying to update ONE single table.
G.

--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Nov 13 '05 #5

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

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
1
by: gary b | last post by:
Hello When I use a PreparedStatement (in jdbc) with the following query: SELECT store_groups_id FROM store_groups WHERE store_groups_id IS NOT NULL AND type = ? ORDER BY group_name
8
by: deko | last post by:
I'm trying to open a Recordset based on a parameterized query. I'm kind of new to parameterized queries, so I'm sure I'm missing something simple. Set qdfs = db.QueryDefs Set qdf =...
2
by: deko | last post by:
Is it possible to build a parameterized query from another parameterized query? I've tried two variations of this and can't seem to get it to work (using DAO). Any suggestions welcome! I...
11
by: anony | last post by:
Hello, I can't figure out why my parameterized query from an ASP.NET page is dropping "special" characters such as accented quotes & apostrophes, the registered trademark symbol, etc. These...
8
by: Roland Hall | last post by:
In Access you use "*" + + "*", + can be replaced with & Calling a parameterized query in Access requires % be used in place of *, however, all that I have read show dynamic SQL passed to Access: ...
0
by: BenCoo | last post by:
Hello colleagues, I have a ObjectDataSource wich is linked to a SQL Server 2005 database I a gridview I have data and on each row a "Edit button" wich wil show the selected record in editmode....
4
by: =?Utf-8?B?Sm9uIEphY29icw==?= | last post by:
For MS SQL Server... I am used to declaring local variables in my SQL queries... Declare @MyInt int, @MyChar varchar(33) Parameters were idenfitied with a colon... Where ModDate :MyDate But,...
2
by: bob | last post by:
Hi, Its been a long time since I have had the joy of feeding parameterized query CommandText strings to an OleDBCommand object. I have tried all manner of versions of " update foo set bar = @bar...
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
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: 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
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...
0
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...
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...
0
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...
0
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...

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.