Hi All,
I was reading thread705-805911 where exporting data to "My Documents" folder can be done through
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "QueryName", _
"C:\Documents and Settings\" & Environ("username") & "\My Documents\" & strFileName & ".xls", True, ""
Some users have the My Documents folder pointing to Drive D and others on Drive C. How can I export to this folder regardless of the path?
Thanks!
I was reading thread705-805911 where exporting data to "My Documents" folder can be done through
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "QueryName", _
"C:\Documents and Settings\" & Environ("username") & "\My Documents\" & strFileName & ".xls", True, ""
Some users have the My Documents folder pointing to Drive D and others on Drive C. How can I export to this folder regardless of the path?
Thanks!