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

append query in asp from access
MS Access textbox update/append
Add zeros (if necessary) to a number in access
Can someone explain the difference between “AND” and “&” in Access
Access 2010 Web Database How to extract a particular column from combo box
password-protecting Access tables
Access - Excluding first column from lookup values
VBA MS Access 2010 How to call a Subroutine of an Object?
Report Field Should Show “N/A” Based on Separate Field
Progress bar in in MS Access
SQL SELECT Query on related table
Assistance with combo box using lookup table - MS Access
MS access : how to add 1 row between 2 rows?
Access 2010 Error Accessing the system registry
How to edit subform based on joined tables in Access 2010
Textfield in Access 2003 query replaced by squares and asian symbols

Categories

HOME
sendgrid
date
path-finding
jira
yum
acquia
node-notifier
esper
add
applepay
google-translate
maude-system
windows-10-universal
izpack
handsontable
flask-wtforms
windows-server-2012
database-replication
contextmenu
django-cms
nas
swiftlint
xlsxwriter
jasonette
web-sql
google-search-api
extjs5
pass-by-reference
icloud-api
blazemeter
web-api-testing
compatibility
libuv
google-cloud-nl
srcset
socialengine
winrt-xaml-toolkit
framemaker
sequential
dartium
jquery-bootgrid
espeak
code-search-engine
theano.scan
greenrobot-eventbus
avro4s
botbuilder
password-encryption
total-commander
netcdf4
checkboxlist
slick-3.0
skeleton-css-boilerplate
flickr-api
smartcontracts
revapi
blogengine.net
sage-one
gabor-filter
knockout-components
magma
libusb-win32
dwscript
bonobo
url-masking
xml-attribute
nsviewcontroller
hover-over
independentsoft
qtableview
marching-cubes
content-length
coveralls
tarjans-algorithm
wyam
drawbitmap
tableau-online
apache-commons-fileupload
pretty-print
npapi
qpainter
mdt
project-planning
aapt
seaside
kgdb
mechanize-ruby
bundles
didselectrowatindexpath
concurrent-collections
srs
commoncrypto
soundtouch
gridcontrol
hungarian-algorithm
pushbackinputstream
jquery-knob
errai
jspinclude
cufon
nsdatecomponents
deobfuscation
coercion
table-footer
calling-convention
inotifycollectionchanged
putchar
paul-graham
uiq3

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