Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CDaoDatabase for Opening MS-Access

CDaoDatabase for Opening MS-Access

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    D Manivelan
    wrote on last edited by
    #1

    Hi i have developed an tool which writes data into the MS-Access file (Eg: empdata.mdb which exist in remote pc). - Certainly this exe will run in many machine across network( Approxmatively 30 machines) When i run the exe in diffrent machines (windows 7) it giving the following error. "It is already opened exclusively by another user , or u need permission to view its data." Could anyone help in resolving the issues. Thanks & Regards Mani

    J 1 Reply Last reply
    0
    • D D Manivelan

      Hi i have developed an tool which writes data into the MS-Access file (Eg: empdata.mdb which exist in remote pc). - Certainly this exe will run in many machine across network( Approxmatively 30 machines) When i run the exe in diffrent machines (windows 7) it giving the following error. "It is already opened exclusively by another user , or u need permission to view its data." Could anyone help in resolving the issues. Thanks & Regards Mani

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      The error message indicates that the database has been opened by another application with exclusive access or the user hasn't sufficient privileges to access the database file. When using the CDaoDatabase class, pass FALSE as second parameter to the Open() function. When using Access, it must be configured to open files in shared mode (this is the default). The database file must be readable and writable for the users. See also Ways to share an Access database[^].

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups