bustersports
Programmer
1st, thanks for taking the time to look at my question.
I am using Access 2010. Trying to transfer a table to Excel. All of the fields must be a text field, left justified, capitalized. This is working fine with the exception of one field name being changed. The field name in the exporting table is REFERENCE#. When it exports to Excel, it becomes REFERENCE. (with the period added, no pound sign). I have tried with the caption of the field blank as well as REFERENCE#, same result either way. I get the same result, without the #, when just doing a right click on the table and exporting to Excel. I have tried creating a new table, even just having REFERENCE# as the only field, same result. I have tried adding the # to other field names, get the period as well. Any suggestions for how to get around this? Deleting or changing the pound sign to some other character is not an option as the file is sent to another company which requires the pound sign be there.
My code for the transferspreadsheet is -
DoCmd.TransferSpreadsheet acExport, 8, "tblTempBizTalkOutputToCTSI", "C:\Freight Payment Tools\Exception Central\test.xls", False, ""
Below is the actual result (some fields deleted for readability here, they are all working fine)
CARRIER REMITZIP CURRENCY BIL2NO PRONUM BOLNUM HAWB PRODATE SHIPDATE REFERENCE. ZONE MODE
Here is what the result should be
CARRIER REMITZIP CURRENCY BIL2NO PRONUM BOLNUM HAWB PRODATE SHIPDATE REFERENCE# ZONE MODE
I am using Access 2010. Trying to transfer a table to Excel. All of the fields must be a text field, left justified, capitalized. This is working fine with the exception of one field name being changed. The field name in the exporting table is REFERENCE#. When it exports to Excel, it becomes REFERENCE. (with the period added, no pound sign). I have tried with the caption of the field blank as well as REFERENCE#, same result either way. I get the same result, without the #, when just doing a right click on the table and exporting to Excel. I have tried creating a new table, even just having REFERENCE# as the only field, same result. I have tried adding the # to other field names, get the period as well. Any suggestions for how to get around this? Deleting or changing the pound sign to some other character is not an option as the file is sent to another company which requires the pound sign be there.
My code for the transferspreadsheet is -
DoCmd.TransferSpreadsheet acExport, 8, "tblTempBizTalkOutputToCTSI", "C:\Freight Payment Tools\Exception Central\test.xls", False, ""
Below is the actual result (some fields deleted for readability here, they are all working fine)
CARRIER REMITZIP CURRENCY BIL2NO PRONUM BOLNUM HAWB PRODATE SHIPDATE REFERENCE. ZONE MODE
Here is what the result should be
CARRIER REMITZIP CURRENCY BIL2NO PRONUM BOLNUM HAWB PRODATE SHIPDATE REFERENCE# ZONE MODE