?
Solved

VB MSAccess Multiuser Programming in ADO

Posted on 2003-02-26
2
Medium Priority
?
355 Views
Last Modified: 2013-12-25
How can we accomplish pessimistic locking in VB 6.0 Access 2000 programming using ADO. Also whats the reason for error "Cannot find Installable ISAM" while executing cn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= Path to mdb;UID=admin;pwd=abc123;" Expecting ur valuable reply.
0
Comment
Question by:BinuM
[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 Comments
 
LVL 3

Accepted Solution

by:
Rem earned 200 total points
ID: 8024062
Your first question:
make sure you have the latest mdac installed (mdac_exe) from microsoft.

Your second question:
Private Sub btnOK_Click()

Dim rstYourRecordset As New ADODB.Recordset
Dim strSQLYourRecordset As String
       
    strSQLYourRecordset = "SELECT * FROM [YourTable]"
    rstYourRecordset.Open strSQLYourRecordset , cn, adOpenDynamic, adLockPessimistic
'YOUR CODE HERE

    rstYourRecordset .Close
    Set rstYourRecordset = Nothing
   
    Exit Sub

End Sub
0
 
LVL 1

Expert Comment

by:ayufans
ID: 9221727
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- answered by Rem

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

ayufans
Cleanup Volunteer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
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…
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…
Suggested Courses

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