using System.Collections.Generic;
using System.Windows.Forms;

namespace LandTransfer
    static class Program
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        public static int code = 0;
        public static string database = "//";
        public static string source = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source=" + database + "";
        static void Main()
            Application.Run(new Parent());

I am trying to export data to onother compuer database having in network, error "the programme is being used by onother user exclusivly or you have no permission" The programme is same but i want that two person on different computer can work at the same time, and the data should be stored in one computer. I am giving my programme coding ---------

Edited by pritaeas: Moved.

5 Years
Discussion Span
Last Post by lolafuertes

Access databases can only be open by one user at a time.

It would be wise to open a connection , read all data, then close the connection.


On the computer '' should exist a shared folder published as 'LandTransfer'.
When you share the folder, go to the advanced share options, and set the share permission to full for every.

If the computer '' belongs to an Active Directory Domain, and yours also, to the same domain, then on the '' computer you must give permissions to domain users to the folder to modify (not to the share). Otherwise, if both computers are stand-alone (not acive directory integrated) you must create a network unit( S: or what else is free) , pointin to the share in '' and supply the user credentials using the computername\username and the passwor for an existing user in the '' computer. In this case, you must change your connection string to "S:/Database/LTMS.mdb".
Alsu you'll need to give local modify permissions to the folder for the username credential you used. (see this KB)

@begginerdev: An Access db can be acessed from many users at same time. See this article.

hope this helps

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.