MS Access setting to ignore date conversion error -
an access db imports fixed width text file; 1 column dates. when date not available, file's creator uses string "null" access puts row in table field null.
but, when files started coming different field widths, copied db, tweaked starting/width values in input spec, , imported. now, rows null logging in (table)_import_errors error converting text date.
i have found no setting (not changed any) explain it. 1 difference although both dbs in access 2000 format, original on machine still has access 2000, while new 1 being handled access 2003.
is behavior change in access version? pre-processing file solution?
thanks, david. that's have done (except excel part) if had not fixed itself. posted that, apparently didn't public admission access has bugs.
the thing changed 2 other columns in fixed width plain text input wider. yet access "decided" discard whole row instead of date field 3 consecutive attempts. fourth time, still reported error imported rest of row.
so, when access misbehaves no reason, try again time or two, try explicitly coding conversion text.
two possibilities:
use buffer field or buffer table imports date field text field. can process appropriate values in final destination field.
use sql import instead of docmd.transfertext. in case use connect string in clause can process date field in select:
select sheet1.firstfield, replace(sheet2.datefield, "null", null) datefield sheet1 in 'c:\import\spreadsheet.xls'[excel 5.0;hdr=yes;imex=1;];
convert insert query , you're golden.
Comments
Post a Comment