Solved

App.path setting...

Posted on 2000-03-12
3
262 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]
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now