- Local time
- Today, 14:14
- Joined
- Feb 28, 2001
- Messages
- 30,088
Hi, group. I've been up to my a** in alligators down here in the South Louisiana bayous and haven't been visiting for a while, but now I have to come back because now I have a problem. I have searched the forum on this topic but not found an answer. It is, of course, possible that I am asking the wrong question in my search, but so far, no joy has resulted from anything I've sought.
In AC97, I use the ComDlg32.OCX module to activate the common dialog box. I use the OpenFile method to find a file that will be opened for analysis. The details of the analysis are unimportant for the problem. Once I find the file, everything else works just right, no headaches there.
The files for this analysis function are kept in a fixed staging area on a networked drive about 99% of the time, though it is certainly possible to browse anywhere on the local or network drives to find your input. Therefore, it would make sense to force the OpenFile dialog box to show its opening view as the folder where most of the files are kept. But it does not. It always shows me the Access initial directory.
Other file-based functions exist that would use different folders, so I don't want to make the Access default directory equal to this staging area for all functions. I have tried to use the .InitDir property of the common dialog object, but it seems to ignore this setting. I tried using the ChDir function before calling the browser box, but also no joy.
Of course, once the browser box has been used to find the first file to be analyzed, all subsequent calls point to the right place until I close the form in question. But I would really like for the first OPEN to also point to that directory / folder.
The Help Text for the Common Dialog functions include a reference to a "New Search" (such as would be part of the Applications .FileSearch object), but I can't find the flag or method for that function in the object browser. Therefore, I cannot set it to override the initial directory.
Has anyone deciphered the ComDlg32 vagaries to allow this file folder pre-selection process to work the first time around? My users can be told where to look, but from an aesthetic viewpoint (and an ease-of-operation viewpoint), it would be far more preferable to just plunk them down in the right place right away.
Any takers?
In AC97, I use the ComDlg32.OCX module to activate the common dialog box. I use the OpenFile method to find a file that will be opened for analysis. The details of the analysis are unimportant for the problem. Once I find the file, everything else works just right, no headaches there.
The files for this analysis function are kept in a fixed staging area on a networked drive about 99% of the time, though it is certainly possible to browse anywhere on the local or network drives to find your input. Therefore, it would make sense to force the OpenFile dialog box to show its opening view as the folder where most of the files are kept. But it does not. It always shows me the Access initial directory.
Other file-based functions exist that would use different folders, so I don't want to make the Access default directory equal to this staging area for all functions. I have tried to use the .InitDir property of the common dialog object, but it seems to ignore this setting. I tried using the ChDir function before calling the browser box, but also no joy.
Of course, once the browser box has been used to find the first file to be analyzed, all subsequent calls point to the right place until I close the form in question. But I would really like for the first OPEN to also point to that directory / folder.
The Help Text for the Common Dialog functions include a reference to a "New Search" (such as would be part of the Applications .FileSearch object), but I can't find the flag or method for that function in the object browser. Therefore, I cannot set it to override the initial directory.
Has anyone deciphered the ComDlg32 vagaries to allow this file folder pre-selection process to work the first time around? My users can be told where to look, but from an aesthetic viewpoint (and an ease-of-operation viewpoint), it would be far more preferable to just plunk them down in the right place right away.
Any takers?