PC Review


Reply
Thread Tools Rate Thread

Field size when importing from Excel

 
 
Dave
Guest
Posts: n/a
 
      24th Feb 2006
The text fields come in as 255 characters when importing. Is there a way
that the import sets the filed size to the character width in the excel
column?

Or is there a way to set the width on the import. I bring a large employee
db in once a month, and I have to chnage the filed widths each time or the
db is huge.

Thanks


 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      24th Feb 2006
It appears you are importing into a new table. Your default text field size
in your database appears to be set to 255. The better way to control field
sizes and data types is to import to an existing table.
Create a table with the data types and field sizes you want. Then import
into that table. You will, of course have to clear the table's data prior to
the import. You can do that with one simple line of code:

CurrentDb.Execute("DELETE * FROM mytablenamehere;"), dbFailOnError

"Dave" wrote:

> The text fields come in as 255 characters when importing. Is there a way
> that the import sets the filed size to the character width in the excel
> column?
>
> Or is there a way to set the width on the import. I bring a large employee
> db in once a month, and I have to chnage the filed widths each time or the
> db is huge.
>
> Thanks
>
>
>

 
Reply With Quote
 
 
 
 
Dave
Guest
Posts: n/a
 
      25th Feb 2006
Interesting! I am going to do this, hadn't thought about this.

Thanks

Dave
"Klatuu" <(E-Mail Removed)> wrote in message
news:B5D6B2A7-E289-4BF6-8C53-(E-Mail Removed)...
> It appears you are importing into a new table. Your default text field
> size
> in your database appears to be set to 255. The better way to control
> field
> sizes and data types is to import to an existing table.
> Create a table with the data types and field sizes you want. Then import
> into that table. You will, of course have to clear the table's data prior
> to
> the import. You can do that with one simple line of code:
>
> CurrentDb.Execute("DELETE * FROM mytablenamehere;"), dbFailOnError
>
> "Dave" wrote:
>
>> The text fields come in as 255 characters when importing. Is there a way
>> that the import sets the filed size to the character width in the excel
>> column?
>>
>> Or is there a way to set the width on the import. I bring a large
>> employee
>> db in once a month, and I have to chnage the filed widths each time or
>> the
>> db is huge.
>>
>> Thanks
>>
>>
>>



 
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
Size Size Size - and Backup Copy =?Utf-8?B?SGVzaGFtIFNha3I=?= Microsoft Access 1 21st Jul 2007 03:45 AM
Hyperlink Field Size - max field size = 255...why? =?Utf-8?B?U3RldmVT?= Microsoft Access 2 15th Mar 2005 05:23 PM
importing data from excel that exceeds text field size limit Oak N. Microsoft Access External Data 3 2nd Jan 2004 07:53 AM
importing tables AS/400 decinal field size Nelson Moore Microsoft Access External Data 0 28th Aug 2003 06:20 PM
Re: windo xp screen size played a game in full screen size now i cant get my size ba Jimmy S. Windows XP Games 1 1st Aug 2003 10:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 PM.