Abhimanyu Kumar Vatsa
posted
577 posts
since
May 01, 2010
from
|
|
Re: Setting Database on LAN Server
|
|
|
|
|
|
|
|
|
|
|
i hv not worked on such but i think you should try this
Me.OleDbConnection1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""\\computer_name_on_lan\C:\Documents and Settings\All Users\Documents\Test Database\TestDatabase.mdb"""
Remember: C drive should be shared with full access so that network user can edit it.
I have not tried such project coz I don't have network on my home. i only have 1 pc. very funny....
thanks
|
|
|
|
|
|
Abhimanyu Kumar Vatsa
posted
577 posts
since
May 01, 2010
from
|
|
Re: Setting Database on LAN Server
|
|
|
|
|
|
|
|
|
|
|
Please read this articles
http://office.microsoft.com/en-us/access-help/ways-to-share-an-access-database-HA010279159.aspx
http://www.access-experts.com/default.aspx?selection=TutorialSplitDB&sm=18
|
|
|
|
|
|
David Carter
posted
31 posts
since
Jul 22, 2010
from
Australia
|
|
Re: Setting Database on LAN Server
|
|
|
|
|
|
|
|
|
|
|
Thanks Abhi,
I'll give these a try and let you know how I get on.
David
|
|
|
|
|
Carter's Law of Productivity. "The amount of work a person does is inversely proportional to the number of suggestions they offer." - David J Carter
|
|
|
|
|
|
David Carter
posted
31 posts
since
Jul 22, 2010
from
Australia
|
|
Re: Setting Database on LAN Server
|
|
|
|
|
|
|
|
|
|
|
Hi Abhi, The following code, typed into the sub Form1_Load, worked.
Me.OleDbConnection1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""\\Carter_2\Test Database\TestDatabase.mdb"""
I made sure the folder 'Test Database' was shared by all.on the LAN. I'm using Windows XP, so Vista and Windows 7 procedures might be different. I opened the folder 'Shared Docs on (Carter_2)', then right clicked on the folder 'Test Database' and selected Properties. Under the Sharing tab I had to tick "Share this Folder on the network" and "Allow network users to change my files". Working perfectly now, Thank you, mate.
|
|
|
|
|
Carter's Law of Productivity. "The amount of work a person does is inversely proportional to the number of suggestions they offer." - David J Carter
|
|
|
|
|
|