Solved

Unparsable Values in Access

Posted on 2004-10-05
3
249 Views
Last Modified: 2008-03-17
I have four excel files that have the same columns in the same order and very similar data. The only difference between these four files that these four files came from four different regions of our company. Each file has approx. 150 columns and anywhere from 30000 to 55000 records.

I wanted to import these files into Access, as one combined table to make this data managable. The first two files imported easily, using the Access Import Wizard. Each file created an error log which contained some "type conversion" errors, but a too few records to worry about (less than .02%).

The other files were very problematic and would not import into Access. I attempted to clean up the data by making sure that each text field had 255 or fewer characters. This allowed me to import the tables; however the error log showed "Unparsable Records" and there was a significant number of errors - average of one error per record. I tried to determine if just a few fields were problematic, however the affected fields are all across the board.

I started to double check the records in Excel and the new Access table. Most of these records are one worded fields (ie Yes or John Smith). Nothing legthy or with unusual characters.

Any idea why I am getting these errors or how I can prevent them?

Thanks in advance for your help!

Monica
0
Comment
Question by:monicasoi
3 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 500 total points
ID: 12232626
Probably fields that Access cannot parse using its default type conversion algorithms (date fields are particularly problematic in this regard, as well as certain formats of text fields). I would recommend importing the data into a table where all the field are data type text first. Now run an append query from this "temporary" table into your real table and include your own type conversions functions where necessary.
0
 
LVL 26

Expert Comment

by:Alan Warren
ID: 12234280
You may have more success linking to the sheets using the linked table manager, then run your append sql as local.
Might work, but should possibly get a better error description.


Alan
0
 
LVL 39

Expert Comment

by:stevbe
ID: 12236706
I hate how Access and Excel do/ not talk to each other. I like to save the Excel file as CSV and link to that in Access and then run an append query like Alan suggested or process it as a recordset to validate cross field values. Using code, allows for a great deal of flexibility, I have some that require the entire file is correct before importing and some where I load the good records into production and bad records into a "holding" table for correction which after changes can be use to validate and put into production.

Steve
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now