Solved

Recordset is not Updatable

Posted on 1997-11-24
3
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

717 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