excel - Format changes importing to access from excel
问题描述
I am importing data from excel into Access and, for some of the files, my 11 digit data starting with 2 leading 0s will be trimmed to 9 without the leading 0s and it's messing up my SQL queries. I double check and I'm certain that the cells are correct in the original excel file. How do I prevent trimming when it imports? Alternatively, how do I change the format of the column to force it to be 11 digits? I couldn't see that as an option in the ribbon.
Below is the code I'm using to import:
Public Sub ImportXLSS(fileName As String, tableName As String)
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, tableName, fileName, True
End Sub
解决方案
推荐阅读
- java - 通过 kafka 在 zipkin 中传递数据的问题 - 无法转换消息
- javascript - 同时使用“onClick”和“onDoubleClick”事件监听器反应组件
- ruby-on-rails - 更智能的 CSV 忽略 csv 中的空白行
- javascript - 如何使用 Jquery 获取每个表的每个 tr 中每个 td 的文本?
- go - 无法编码 json.decoded 请求正文
- css - 在 mixin 中修改 Bootstrap 变量
- angular - 如何在 Angular 中使用 Observable 获取多个页面?
- javascript - Azure忘记密码链接出现错误我如何重新喜欢它
- django - xlwings || excel可见度问题
- azure - 在 az cli 中向 Azure 服务主体授予安全读者角色