ms-access


DoCmd.TransferText import issues


I'm attempting to set up an automated import of a number of CSV files into Access. I've simplified my base code below. Normally the FileName would be populated via a loop on another table, but I've removed it for simplicities sake here.
FileName = "IDP-FOR-DOTCM-OMNI-INS-V-AS400"
DoCmd.TransferText acImportDelim, "", "RAW", "\\CS-FS-prod\CSWFMGroup\Tools\Data\IDP\" & FileName & ".csv", True, ""
When I run the code 29 of the 30 files import successfully without issue, however one file incorrectly removes the decimals from the last column SL unless it has a decimal in the first record that contains data (5th record down below).
Note I've changed the column names to shorten them and I removed some of the null results at the start (there is one for each 30 minute interval of the day) normally where there are no results, it will appear as it does on lines 2-5. I removed as I didn't believe it to be important/ is in the way here.
"F1","CODE","START","STOP","HR","MIN","Vol","AHT","SL"
,"ABC",5/7/2017,5/8/2017,,,,,
,"ABC",5/7/2017,5/8/2017,,,,,
,"ABC",5/7/2017,5/8/2017,,,,,
,"ABC",5/7/2017,5/8/2017,9,30,1,409.22,0
,"ABC",5/7/2017,5/8/2017,10,0,1,418.61,50
,"ABC",5/7/2017,5/8/2017,10,30,1,431.29,50
,"ABC",5/7/2017,5/8/2017,11,0,1,462.51,90.9
,"ABC",5/7/2017,5/8/2017,11,30,1,518.07,45.45
I've seen methods of using saved imports with the DoCmd.TransferText in order to successfully upload data, but where I am not always using the same file name (Populated via another table), I'm not sure I could get this to work. In fact doing this method directly on one table will work for a successful import, but won't fit my needs.
Any other suggestions? Something I'm missing, or maybe another method that I could use to import?
Thank you!

Related Links

How to get a combobox2 to display records only relating to the selection made in combobox1?
Ms Access: Running an update query
Access Query that brings up decimal amounts
Access 2016 Processes not being killed during Automation but same works for Access 2013/10/07
Unable to use Multivalue field in an exsting Access form
Insert value from textbox into 2 different table ms-access
Access 2013 Expression Builder not displaying
Missing ACCDB database drivers
MS Access Form button that allows user to browse/choose file, then imports file to a table
Can codesmith generator work with MS Access provider?
Access file unable to run in x64
Form.Seltop not selecting top most record
I have an ADO recordset, now I want to create a table from it but not at its connection location. How?
weighted average caluculation in access table
inputting info from one text box to another with command button
Sending attachments using access vba

Categories

HOME
openlayers
deployment
amortized-analysis
leon
fingerprint
echarts
django-imagekit
webrequest
session-variables
maude-system
nano-server
phaser
try-catch
worldwind
fatal-error
cx-freeze
java-3d
mps
facebook-instant-articles
autosys
tooltipster
greendao
linkerd
opentype
delicious-api
librato
nouislider
google-rich-snippets
ecto
key-value-observing
code-contracts
textmate
nssegmentedcontrol
io-redirection
stacked
reportbuilder
streamreader
gulp-sourcemaps
reportingservices-2005
flashair
node-sass
user-accounts
hendrix
boost-multi-index
integrity
lowpass-filter
knpmenubundle
imanage
specrun
mathematica-frontend
sigabrt
actionbardrawertoggle
master-slave
cloudbees
srand
wso2cloud
libressl
pundit
muse
operation
processmodel
jsapi
kineticjs
python-green
rake-task
pick
c3
coldbox
javafx-webengine
cctv
bitcoinj
aapt
valueconverter
rtmfp
message-driven-bean
ivyde
cdc
sitemesh
tws
interface-orientation
runas
manchester-syntax
propertyeditor
objective-c-2.0
tomcat-valve
remember-me
microsoft-virtualization
simpletest
pascal-fc
ubuntu-9.04
mdac
.net-1.0
document-conversion

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App