Simple AODC Data Question

Posted on 2003-03-10
Medium Priority
Last Modified: 2010-05-01
I wish to edit an item of data from a recordset using code, so far I have the following

               dbOrders.Recordset.Fields("Prepared").Value = Username.Text

I get the error "Operation must use an updateable query", even though dbOrders.EditMode is set to "write".
Please Help
Thankyou r1gga
Question by:r1gga
LVL 143

Accepted Solution

Guy Hengel [angelIII / a3] earned 40 total points
ID: 8102456
What is the query for this recordset?

Expert Comment

ID: 8102487
Your query is not updatable, probably becouse of some JOIN in it. Post quesry here, or rethink why recordset can not be updated. Maybe records are not uniquely identified...

Author Comment

ID: 8102535
ok thanks angell, u prompted me in the right direction, the problem was the editmode settings for the adodc have no bearing on the recordset as it is defined by an SQL query so i defined write access in the SQL and it works thanks!

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question