Hi all, below is a sample of my code
Sub Export()
Dim objExcel As Excel.Application
Set objExcel = CreateObject("Excel.Application")
DoCmd.OutputTo acOutputQuery, langName & " Q", acFormatXLS, tbFile, False 'export the query
OpenFile (tbFile) 'using shellexecute to open tbFIle, file tat was...