J
jfp
I have some VBA code like this:
DoCmd.OutputTo acOutputModule, objName, , objName & ".bas"
It works, but the resulting file does not always go to the same
directory. If i have just opened the database, then the file goes to
the directory where the .mdb file is. If i Import something (form,
table, whatever) from a data base in another directory and then run the
above code, the file goes into the directory from which i imported. In
other words, it seems like the most recently (for whatever reason) used
directory becomes the default directory for this command. (This does
NOT happen for "File / Export File" from the VBA menu.) Is there any
way to control this ? Thanks !
DoCmd.OutputTo acOutputModule, objName, , objName & ".bas"
It works, but the resulting file does not always go to the same
directory. If i have just opened the database, then the file goes to
the directory where the .mdb file is. If i Import something (form,
table, whatever) from a data base in another directory and then run the
above code, the file goes into the directory from which i imported. In
other words, it seems like the most recently (for whatever reason) used
directory becomes the default directory for this command. (This does
NOT happen for "File / Export File" from the VBA menu.) Is there any
way to control this ? Thanks !