Solved

XLS file used as data connection losing data

Posted on 2015-01-09
5
69 Views
Last Modified: 2015-01-09
I have a spreadsheet that is created via an export from Crystal reports.  The xls is fine when I go to open it.  I have another spreadsheet that has a data connection to the exported sheet.  When looking at the data from the connection all data in column o is cleared out except the header.  I have recreated this with several test sheets and can't seem to find the issue.  I am attaching a test sheet and if you create a data connection to that sheet and just bring over all data it will drop the data in column o.
C--Users-timothy.watkins-Desktop-test06.
0
Comment
Question by:notasgoodasyou
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:gowflow
ID: 40541232
what is the extension of this file ?? it seems too long name it truncated the extention and have is as text. if xls then shorten the name and reloaded it with the extention.

gowflow
0
 

Author Comment

by:notasgoodasyou
ID: 40541251
Here is the file again.  Don't  know why IE was adding the path to the file name.  thanks
test06.xls
0
 
LVL 29

Accepted Solution

by:
gowflow earned 500 total points
ID: 40541265
I suspect (and this is just pure estimation) that Col O is the only col where data starts after the 8th row and I fear that the system not seeing any data is giving the field string instead of number ....

Try putting something in row 2 or 3 just sake trial in this column and try it and see if it still whipes out the data.

by the way you should always have in row 2 at least the type of data like if the field is string have A or number integer have 9 or decimal have 9.9 or currency $9.9 etc..
gowflow
0
 

Author Comment

by:notasgoodasyou
ID: 40541331
I had actually tried changing the scan rows in the data connection to no avail.  However your solution to test it with data did work and the data populated.  I have now since found the MS KB article explaining the scan rows setting on the connection is ignored and you have to change the registry setting to bypass it.  I updated the TypeGuessRows DWORD value to 0 and now all data comes through.  Thanks for your help.
0
 
LVL 29

Expert Comment

by:gowflow
ID: 40541355
Your welcome !
gowflow
0

Featured Post

Highfive Gives IT Their Time Back

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will show you how to use shortcut menus in the Access run-time environment.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

707 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

12 Experts available now in Live!

Get 1:1 Help Now