I cannot find the equivalent of "AppPath" (VB5) in Access. Just trying to soft code the location of the open database in order to save the Excel file as referenced below.
DoCmd.OutputTo acOutputQuery, "qryOpenOfficesExcel", acFormatXLS, "OpenOfficesExcel.xls", True
Can anyone tell me what to put before "qryOpenOfficesExcel"so that the Excel file will be saved in the same folder as the open DB?
DoCmd.OutputTo acOutputQuery, "qryOpenOfficesExcel", acFormatXLS, "OpenOfficesExcel.xls", True
Can anyone tell me what to put before "qryOpenOfficesExcel"so that the Excel file will be saved in the same folder as the open DB?