Solved

Recordset is not Updatable

Posted on 1997-11-24
3
297 Views
Last Modified: 2013-11-26
Set mydb = Opendatabase("",false,false,"ODBC;DSN=MSSQLSRV;")
Set Data1.Recordset = mydb.OpenRecordset("test_table",dbOpenDynaset)
Now if I check Data1.Recordset.Updatable , it is false. Why ? mydb.Updatable is True. How can I create an updatable recordset on Data1 without setting the Data Control's Connect and Datasource property. I dont want the Data Control to open a connection of its own to the MS SQL Server 6.5 I have also tried Dim rs as Recordset but even rs turns out to be Updatable False.
0
Comment
Question by:sudhin031597
  • 2
3 Comments
 

Author Comment

by:sudhin031597
ID: 1442221
Edited text of question
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1442222
If accessing SQL server, you should be using RDO from the Enterprise Edition.  Also, Table methods are not well received in an SQL server environment, because everybody else gets locked out, and that's a bad thing.  Finally, you need to step up to unbound controls, and manage the population and updating of resultsets in your own code.  And, you need to get to creating read only resultsets of limited scope (# rows), with update/insert using the execute method, rather than .edit/.update methods, because these as well make the SQL Server lock pages for a computer eternity, and that is also a bad thing!

I recommend you read "Hitchiker's Guide to Visual Basic & SQL (Server) from Microsoft Press, before you go much farther, or at least have it open as a reference.
0
 

Author Comment

by:sudhin031597
ID: 1442223
I teach RDO to my students ! I can open an updatable resultset
and any DAO recordset turns out to be read-only. I thought this
could be a well-known bug and somebody could tell me the latest
bug-free version.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

770 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