My invoice number (Auto number) formatted like “Binu/21-22/”0000. While running the query, invoice number is showing “Binu/21-22/0001” which exactly I want When I am exporting it to excel with following VBA code -DoCmd.OutputTo acOutputQuery, "Qry_Test", acFormatXLSX, sFileName, True- that time also excel file is showing the format “Binu/21-22/0001” but when I am clicking on the invoice number on excel file cell then its showing only “1”. I want excel file also with the correct format “Binu/21-22/0001” instead of “1”. Anyone can help me how to resolve this”