Microsoft Access
  Home arrow Microsoft Access arrow Page 3 - Upgrading your Access Application for a Mu...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Upgrading your Access Application for a Multi-user Environment
By: Peter Lavin
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 34
    2004-07-14

    Table of Contents:
  • Upgrading your Access Application for a Multi-user Environment
  • Connection Object
  • Recordset Object
  • Security
  • Performance Improvements

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Upgrading your Access Application for a Multi-user Environment - Recordset Object


    (Page 3 of 5 )

    Recordset Object

    If you want the user to navigate through your data, using a recordset object is the commonest way of doing this. A recordset doesn’t need to be opened against a connection object as such. It can be opened by passing in a string parameter that describes a connection. However, it is better programming practice to use a connection object because the programmer has an explicit reference to the object and can set it to “nothing” if need be. For this reason we recommend opening recordsets against existing, explicitly created connection objects.

    Find below code to open a recordset against the connection object created above:

    Set rsBooks = New ADODB.Recordset

    With rsBooks

       .ActiveConnection = cnDemo

       .Source = "Select * From tblItems"

       .CursorType = adOpenDynamic

       .LockType = adLockOptimistic

       .CursorLocation = adUseServer

       .Open

    End With

    In order to see changes made by other users, we must use a dynamic, server-side cursor. As an aside, CacheSize also has an effect on visibility of changes but only if its default value of “one” is changed.

    The default lock type is read-only so we must explicitly use some kind of record locking if we wish to update or change records. We have a choice of using optimistic or pessimistic locking. The difference between these two types, as described by Microsoft, is that a pessimistic lock, “Prevents other users from accessing data while locked”.

    Please note that the CursorType is dependent on the CursorLocation. If the cursor location is set to the client then the cursor is static regardless of how it is defined in the CursorType.

    More Microsoft Access Articles
    More By Peter Lavin


       · hi,Ok it won't support more on 20 people,but if we want that are steps we need to...
     

    MICROSOFT ACCESS ARTICLES

    - Converting a MySQL Database to an Excel Work...
    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    Stay green...Green IT