Solved

App.path setting...

Posted on 2000-03-12
3
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 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