Results 1 to 6 of 6

Thread: [2005] Exclusive Connection

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    31

    Question [2005] Exclusive Connection

    Hello,
    I use VB2005 and MS Access.
    I want to connect to an Access database exclusively for a few minutes. So that other user can't add, edit data to that database. How can I make that connection?

    Pls Help me.

    In Previous VB version I used Connection.Mode=adShareExclusive

  2. #2

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    31

    Unhappy Re: [2005] Exclusive Connection

    Pls reply. I badly need it in a Point of Sale software to prevent concurrency.

    I have to lock (exclusive access) the database upto printing a report, then unlock it for user.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    31

    Unhappy Re: [2005] Exclusive Connection

    Is it (Exclusive Connection to a database) impossible in vb2005?

    I don't know why nobody answers.

    This forum has made me hopeless.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    31

    Re: [2005] Exclusive Connection

    Exclusive Connection (? Locking) to a Table will also do my job. Pls help me.
    Last edited by mahbub73; May 25th, 2007 at 01:13 PM.

  5. #5
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: [2005] Exclusive Connection

    What do you need the exclusive connection for?
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

  6. #6

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    31

    Re: [2005] Exclusive Connection

    Thanks for your kind reply.

    I want to get two consecutive serial no >> max(ID) and max(ID)+1 << and save them in database. If other users (there are 14 users in our office who are saving data continuously) save a value in ID field in that fraction of second, I might end up with error.

    There may be some different logic available. But we are using it for a long time in VB6. We now think to move on to different logic.
    But before that I just want to know whether VB2005 has that option (lock a table) or not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width