how to create RELATIVE PATH link of Excel sheet in Acceess?

G

Guest

From Access, i need to access data colected in Excel, by linking.
Generally it works, but i cannot move excel table threw directories without
severing Accesses connection. I don't mind moving them together. If i could
make them work while in same directory it would be fine.
I've tried "..\table.xls"which dos not work, and i cant think of anything
else.

Please help if possible.
 
B

Brendan Reynolds

vskarica said:
From Access, i need to access data colected in Excel, by linking.
Generally it works, but i cannot move excel table threw directories
without
severing Accesses connection. I don't mind moving them together. If i
could
make them work while in same directory it would be fine.
I've tried "..\table.xls"which dos not work, and i cant think of anything
else.

Please help if possible.


You can get the path of your Access app using the CurrentProject.Path
method. For example, in the Immediate window ...

? CurrentProject.Path
C:\Users\Brendan Reynolds\Documents\SCCC

Note that the final trailing backslash isn't included, so remember to
include that when concatenating the path and file name ...

strSomeString = CurrentProject.Path & "\" & strSomeFileName
 

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