Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import an Excel sheet with variations in the column
Message
De
05/05/2011 20:45:14
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Import an Excel sheet with variations in the column
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01509767
Message ID:
01509767
Vues:
92
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
Répondre
Fil
Voir

Click here to load this message in the networking platform