Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

let user change path??? 2

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
0
0
DO
Hi all, i could i let user change the path in an app.
I would like an application to run on a server and some times on the client machine, how could i let the user change the path with a command bottom.

like ms-word where i can set the directory where windows look for file??

thanks in advance!!!!
 
I have used a public variable 'home' that is the path to the data. It would typically default to the server ('\\mainserver\data\')
To change that use a form to change the variable to local data:
home='c:\mydata\'

In your code use the variable to access data:

use home + (datatable)
or
select * from home + 'datatable'


Scott
 
...And/Or,

to set the path you might set a default directory temporarily.

In the click method 0of the button:

Set default to "\directorySoANDSo"

=getfile() &&or whatever

Set default to "\myOriginalDefault directory" &&back to original directory

You can "Set Path" as per help file, too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top