Solved

Recordset is not Updatable

Posted on 1997-11-24
3
294 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
Comment Utility
Edited text of question
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Extract Data and filename Macro 20 98
Help in WHSCRIPT 9 41
Vb.net 2008 2 49
Excel VBA, find a string in a column, update a cell 7 50
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now