dumb moment

disgruntled

Registered User.
Local time
Today, 21:21
Joined
Jul 3, 2001
Messages
38
I cannot remember how to denote the current directory. It is for the following example:

Set MyXL = GetObject(".\SL_Template.xlt")

It will be bundled up with the dB so i would like it to work regardless of where the user places the folder.
 
strDbPath = CurrentDb.Name
strDbFile = Dir (strDbPath)

Current Database directory:
strCurrentDbDir = Left(strDbPath, Instr(strDbPath, strDbFile), -1)

Alex
 

Users who are viewing this thread

Back
Top Bottom