Per Douglas J Steele:
>You could write a function that deals with your .INI file and call it on
>startup.
What I wound up doing is:
- Passing "/CMD "inifileURL+workdirectory" on the MS Access command
line.
- First thing in AutoExec, parsing Command() into it's two components.
- From the array returned by the parse, extracting the two components
into global variables gIniFilePath and gTempDirectory.
- Replacing all occurrences of Syscmd(SyscmdIniFile) with gIniFilePath.
Stumbled a little over the string and the plus sign before I realized
the entire string had tb in quotes and not each component.
But it seems to work reliably.
Now it's on to various weird nesses in 2007.....
--
Pete Cresswell