Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2007, 08:09 AM
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Operation must use Updatable query

Ok, here is what is supposed to happen. a Single record is retrieved from a table, and is stored inside a textbox(textbox1), in another textbox(textbox2) is a value. I want the value inside textbox2 to appear in textbox1, and then update the record in the database with the new value in textbox1.

I can do all up to updating the record, where im being given the "Operation must use Updatable Query".

since this is such a small program, and has 3 functions, i've kept the adodc1 caption.

adodc1.recordset.update is what i am trying to use to update the db.

What am i doing wrong?

(Microsoft Jet 4.0 is used.)

 
Old March 2nd, 2007, 02:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there...

what table or query are you using to open the data??

what type of query is the adodc using??

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
 
Old June 19th, 2007, 09:07 AM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am getting the same problem with the following 'simple' query that is being run in Access VBA code connected to a SQL database. I have changed the exact details to better show the query...

UPDATE [TABLE] set [COLUMN] = '[VALUE]'
UPDATE utility set appversion = '5.10.46'

I can see nothing out of the ordinary here. The connection is via ODBC, which tests okay when created. I have connected to SQL (in Query Analyzer) with the same login credentials and executed the query there, with no problems.

Does anyone have a suggestion as to the solution?

Regards,

Sean Anderson
 
Old June 19th, 2007, 11:34 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Is it possible that the account being used in these operations has permission to SELECT, but not to UPDATE? I don't know if SQL gives that level of resolution; Oracle does though.
 
Old June 19th, 2007, 12:32 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Same question as above.. what type of recordset are you using to do the update??

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation must use an updateable query sandhya12_rcnair ASP.NET 2.0 Professional 3 November 11th, 2008 11:56 AM
Must use "updatable query" bc7 ADO.NET 4 January 30th, 2007 03:58 AM
Operation must use an updateable query hchlebowski ASP.NET 1.0 and 1.1 Basics 1 January 24th, 2006 07:11 AM
Operation must use an updateable query chaos2003 Classic ASP Databases 4 August 22nd, 2003 03:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.