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

MS Access MSChart.Graph.8 not printing
Export MS Access Memo field and convert Unicode
Using function from form in Access SQL statement?
How to update an access field w/the date everytime a change is made to its row?
Is Access's AutoNumber (Increment) guaranteed to increment?
VBA Code to Count all Columns that are numeric in ListBox containing SQL Query Results
How to requery a subform from another form?
Is it possible to create a recursive query in Access?
MS Access 2000 Report needs to be PDF format with URL hyperlinks
Deploying Access as a client-server application
Resize form based on if subform visible
MS Access search for record by textbox instead of dropdown
Uniqueness Constraints in MS Access
Application Icon path in MS Access
Microsoft access is a mere file or data-base server
Is ACE/Jet's IN operator or CHECK constraint 'broken'?

Categories

HOME
osgi
testng
magnific-popup
mediawiki
raspberry-pi
lodash
electron
google-oauth
paw-app
rubygems
opengl-es-2.0
convolution
mouse
virtualization
slick-slider
elasticsearch-hadoop
vault
kentor-authservices
export-to-csv
php-7.1
phaser
flask-wtforms
windows-server-2012
clojurescript
systemc
serilog
visual-composer
java-3d
scriptcs
physics-engine
kvc
xpages-ssjs
url-scheme
windows-error-reporting
jspm
objectanimator
unboundid
catel
webtest
atl
google-api-nodejs-client
wixsharp
serverside-rendering
theano.scan
unoconv
sfdc
powershell-dsc
heightmap
reactive-cocoa-5
businessworks
sas-jmp
hibernate-tools
logparser
domain-model
aurelia-validation
mplayer
typed-lambda-calculus
memory-alignment
arrow-keys
spring-cache
synchronous
or-tools
gnome-shell-extensions
removechild
libpng
bonobo
intrusion-detection
asp.net-4.5
pagedlist
captivenetwork
dataview
nessus
ptrace
system.management
javax.sound.midi
cannon.js
cakephp-3.1
splash
event-bubbling
composite
key-management
clipperlib
dd
flask-cors
responsive-slides
dml
balanced-payments
flexmojos
access-rights
listings
odata4j
dbconnection
dataservice
batterylevel
rabl
sqlperformance
cassini-dev
anonymous-methods
simba
jquery-knob
dsn
labwindows
regsvr32
whoosh
libc++
deobfuscation
vdsp
blackberry-playbook
javax.script
appender
mongomapper
lpeg
radcombobox
revisions
forums
w3wp
.net-1.0

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