PC Review


Reply
Thread Tools Rate Thread

Change Field Data Type?

 
 
Chertsey
Guest
Posts: n/a
 
      4th Aug 2009
I am importing data from an Excel file to a New Table. Because it doesn't
allow me to change the Data Type during the import process, I am wondering if
there is any way to programatically change the field data type from "Text" to
"Number" in VBA. I am also curious as to why it doesn't allow me to do so in
the Import Spreadsheet Wizard?
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      4th Aug 2009
Chertsey

If your data is coming from Excel, there's a really good chance that it (the
data) is not well-normalized. So what, you ask? So Access is optimized for
well-normalized data. Both you and Access will have to work overtime to
overcome 'sheet data.

Consider an alternative approach ... import the raw data from Excel as a
first step. Then use queries to parse the raw data into more permanent
Access tables you've designed to be a well-normalized relational database.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Chertsey" <(E-Mail Removed)> wrote in message
news:7131BB21-3C96-481D-A436-(E-Mail Removed)...
>I am importing data from an Excel file to a New Table. Because it doesn't
> allow me to change the Data Type during the import process, I am wondering
> if
> there is any way to programatically change the field data type from "Text"
> to
> "Number" in VBA. I am also curious as to why it doesn't allow me to do so
> in
> the Import Spreadsheet Wizard?



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't change the data type or field size Steve Stad Microsoft Access Database Table Design 3 12th Jan 2010 12:59 AM
You can't change the data type or field size of this field error. =?Utf-8?B?TWVsYW5pZQ==?= Microsoft Access 2 3rd Aug 2007 03:08 PM
Re: Change a Field Data Type Joseph Meehan Microsoft Access 0 6th Dec 2006 11:52 PM
Re: Change a Field Data Type Bill Mosca, MS Access MVP Microsoft Access 0 6th Dec 2006 10:59 PM
Unable to change data type in field options when importing data f. =?Utf-8?B?SmluTXF0?= Microsoft Access External Data 1 21st Jan 2005 10:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:26 PM.