Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Multiuser > Absolute v Rela...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 2104 of 2176
Post > Topic >>

Absolute v Relative Path Help...

by KLZA <clawdogs@[EMAIL PROTECTED] > Apr 9, 2008 at 09:55 AM

Hi.  I have an Access DB that resides on a network drive.  Not
everyone in my company maps the network drive the same.  Anyone can
map it with any letter (ie - drive H: M: etc).  The database looks
for
a text file in the same root directory where the DB resides to email
it.  Since anyone can map there drive letter, i need a relative path
to the text file.  Is it possible to have the access DB look for the
text file using a relative, rather than absolute path?

It currently works for anyone mapped as H.  See below..


BodyFile$ = ("H:\Customer Service\CiRT\CIRCUIT REQUESTS ETC
\emailbody.txt")


I need it something like this:
BodyFile$ = (".\emailbody.txt") or BodyFile$ = ("emailbody.txt")


I tried CurDir$ and App.Path but I'm not getting anywhere...
 




 4 Posts in Topic:
Absolute v Relative Path Help...
KLZA <clawdogs@[EMAIL   2008-04-09 09:55:09 
Re: Absolute v Relative Path Help...
"Jeff Boyce" &l  2008-04-09 10:56:50 
Re: Absolute v Relative Path Help...
"Patrick Jackman&quo  2008-04-09 22:03:41 
Re: Absolute v Relative Path Help...
"Margaret" <  2008-07-06 11:56:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 9:39:59 CST 2008.