David Fletcher
New member
- Local time
- Today, 23:40
- Joined
- Nov 22, 2000
- Messages
- 9
In Access 97 tools options general there is a setting for the default directory, which defaults to "My Documents".
I have a database which is written on one computer and transferred to another computer, and loaded in a folder of different path and name to the one it was in on the original computer.
Now, when executing VBA code MyFile = Dir(*.*), the system defaults to "My Documents" and not to the current folder, which is the one from which the app is run.
Does anybody know how to do set the default directory to the current directory using VBA??
I have a database which is written on one computer and transferred to another computer, and loaded in a folder of different path and name to the one it was in on the original computer.
Now, when executing VBA code MyFile = Dir(*.*), the system defaults to "My Documents" and not to the current folder, which is the one from which the app is run.
Does anybody know how to do set the default directory to the current directory using VBA??