Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import an Excel sheet with variations in the column
Message
From
05/05/2011 20:45:14
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Import an Excel sheet with variations in the column
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01509767
Message ID:
01509767
Views:
93
I have an interesting one. I am important an Excel sheet where one column is a telephone number such as 506-111-2222. This is pretty much all the format we have in this column. But, two rows contain the 911 number. As this one doesn't contain any special characters and only digits, it is aligned right, making it a number. When importing that into a dataset, as the first row is having the proper format, this will be defined as a character field. But, for those two rows where 911 is indicated, because they are considered a number in Excel, this will be recognized as DBNull.Value.

So, if the best practice to ask the user to adjust the Excel sheet? But, if yes, what exactly should I ask him for as far as adapting the layout. As those are valid phone numbers. But, they are entered as is.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Reply
Map
View

Click here to load this message in the networking platform