Solved

App.path setting...

Posted on 2000-03-12
3
265 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 143

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

790 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