VB6 with MS Access
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11

Thread: VB6 with MS Access

  1. #1
    Join Date
    Aug 2009
    Posts
    4

    Question VB6 with MS Access

    Hi,

    I'm new to VB6. I'm using VB6 and MS Access as database. Is it possible for multi user to access my MS Access table (mdb) and open/edit/update simotaniously at one time. If yes, how and what is the example code.

    Please advice me. Thank you.

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: VB6 with MS Access

    Yes it is possible to use MS Access database in a multi-user environment. You will have to put your access DB in a shared location where all the client's (VB programs) can access it.

    Also read this for a better understanding of how MS-Access can be shared
    http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

  3. #3
    Join Date
    Aug 2009
    Posts
    4

    Re: VB6 with MS Access

    Thanks Shuja Ali.

    Another thing want to know, is it posible for more than one user to open the same Access (mdb) table at the same time? because i was thinking of developing a small programme where two workstation can open (and manipulate) the same Access table at the same time.

    Please advice.

    Thank you.

  4. #4
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,784

    Re: VB6 with MS Access

    Yes so long as it is not being open for exclusive access

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    104

    Re: VB6 with MS Access

    And access has a limited number of connections at the same time.
    Theoretical is is 255, but in practice it is a lot lower.

  6. #6
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,875

    Re: VB6 with MS Access

    Wrong. Access can handle 3-5 concurrent transactions at a time, and no more. If you have more users, then you need a middle tier to hit the db, and send it to the other tier (users)

    Otherwise, use SQL Express, which is free
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  7. #7
    Join Date
    Aug 2009
    Posts
    4

    Re: VB6 with MS Access

    Thank you for the answers.

    Got any sample code (partial would be just fine) on how to share Access db?

  8. #8
    Join Date
    Apr 2009
    Posts
    394

    Re: VB6 with MS Access

    Access 2k7 specs http://office.microsoft.com/en-us/ac...CH100621861033

    Access 2k7 specs http://office.microsoft.com/en-us/ac...CH062525931033

    Access 2k2 & 2k3 specs http://support.microsoft.com/kb/302524

    as for 2k and 97 those documents cannot be found

  9. #9
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,875

    Re: VB6 with MS Access

    The link in my signature.

    As far as 255 concurrent users, I wouldn't like to DBA that mess.

    http://en.allexperts.com/q/Using-MS-...imum-Users.htm
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  10. #10
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,875

    Re: VB6 with MS Access

    The link in my signature.

    As far as 255 concurrent users, I wouldn't like to DBA that mess.

    http://en.allexperts.com/q/Using-MS-...imum-Users.htm
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  11. #11
    Join Date
    Aug 2009
    Posts
    4

    Smile Re: VB6 with MS Access

    Thank you so much for all the answers.

Tags for this Thread

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center