E
EagleOne@microsoftdiscussiongroups
2003
How can one get only the current database path from the (Access converted
macro to VBA) VBA command Application.CurrentDb.Name?
I cannot find a function in Access VBA for the filepath of the current .mdb
file.
So I have tried to find a string function which would locate the first "\"
from the right of Application.CurrentDb.Name but I can not find that function.
Ideally, I want to open a 2nd .mdb file in the same path as my 1st .mdb.
Sure I can hard code it, but I want it to "sense" the path and enter the
actual filename in an InputBox.
Is this possible in Access VBA as it is in Excel VBA?
Thanks
EagleOne
How can one get only the current database path from the (Access converted
macro to VBA) VBA command Application.CurrentDb.Name?
I cannot find a function in Access VBA for the filepath of the current .mdb
file.
So I have tried to find a string function which would locate the first "\"
from the right of Application.CurrentDb.Name but I can not find that function.
Ideally, I want to open a 2nd .mdb file in the same path as my 1st .mdb.
Sure I can hard code it, but I want it to "sense" the path and enter the
actual filename in an InputBox.
Is this possible in Access VBA as it is in Excel VBA?
Thanks
EagleOne