Set and use application path in Access VB

S

Sunny Okorie

How best can I set and maintain a string for Application
path to be used any where in a VBA for Access?
 
F

FrankFelder

Sunny said:
*How best can I set and maintain a string for Application
path to be used any where in a VBA for Access? *

Try this one:

CurrentProject.Path will return the application path.

dim spath as string
dim sFile as string
sFile = "somefile.txt"
spath = currentproject.Path & "\" & sFil

FrankFelde
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top