Solved

App.path setting...

Posted on 2000-03-12
3
263 Views
Last Modified: 2011-09-20
Can an visual basic expert give me a guide of to do a App.path setting...

Instead of having my Microsoft Access database sitting on my local C: drive, I would like to set it at my server to allow global usage...

Many thanks for the help !!!

Best Regards

Felicia
0
Comment
Question by:felicia
3 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2611132
App.path returns the path the application is started from. However, you may enter for the shortcut (windows explorer/shortcut properties/shortcut tab) the "start in" properties which may do want you want.
This may not be the solution as you can be limited for some other functionality
0
 

Accepted Solution

by:
AshokKumar earned 10 total points
ID: 2611257
If your machine is to be a server, then others can attach to your system. Mapping is to be done with same drive letter (For Ex. O:\). NOw u can specify the path to O:\Path String. Now, the Mdb file can be accessed by anyone who is attached to your system thru' O:\ mapping. This is the only solution i know.
0
 
LVL 14

Expert Comment

by:wsh2
ID: 2611312
Use UNC notation.. ie. \\computername\driveletter instead of x: as we normally do. If this is being run on a Win9x machine.. Network Neighborhood must be visible on the Desktop for this to work.

\\computername\driveletter\pathname\mydatabase.mdb

The current MS way to go on this, is to setup a Data Environment (VB Menu.. Project.. Add Data Environment).. and then use ADO. Sure its a pain in the @$$, but why shouldn't you suffer too?.. LOL.

Good Luck.. <smile>.

B.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now