PC Review


Reply
Thread Tools Rate Thread

Access Table to Excel Spreadsheet

 
 
Antonette
Guest
Posts: n/a
 
      6th Oct 2009
Hi Guys;

I have an Access Table (257 Columns) that I need to Export to an
Excel File.

I am using a Macro to create the Excel File.

Action = Output

Object Type =Table
Object Name = SchoolsExcl
Output Format = MicrosoftExcel(*.xls)
Output File = C:\TxTeachers\TexasHS.xls
Auto Start = No

Every Column comes accross except One.

The column that does not come accross completely is the largest field in my
table. 50 Characters long. It is a string.

Only about 7 to 8 characters come accross. If the field contains Anthony
Independent School District in my Access Table, the Excel file only shows the
Word District. The characters that come accross are always the last 7 or 8
(or the right side of the field).

The rest of the columns come accross fine.

Anyone have an idea as to how I can get this to work?

Thanks in Advance

Toni.



 
Reply With Quote
 
 
 
 
Ken Snell
Guest
Posts: n/a
 
      7th Oct 2009
An .xls file cannot have more than 255 columns, so I'm surprised that you
get any columns at all.

An ACCESS table with 257 fields "screams" that the database is not
normalized. Most ACCESS tables will have less than 30 fields when a database
is properly normalized.

--

Ken Snell
http://www.accessmvp.com/KDSnell/


"Antonette" <(E-Mail Removed)> wrote in message
news:BC3D61A4-9C67-4AD3-B758-(E-Mail Removed)...
> Hi Guys;
>
> I have an Access Table (257 Columns) that I need to Export to an
> Excel File.
>
> I am using a Macro to create the Excel File.
>
> Action = Output
>
> Object Type =Table
> Object Name = SchoolsExcl
> Output Format = MicrosoftExcel(*.xls)
> Output File = C:\TxTeachers\TexasHS.xls
> Auto Start = No
>
> Every Column comes accross except One.
>
> The column that does not come accross completely is the largest field in
> my
> table. 50 Characters long. It is a string.
>
> Only about 7 to 8 characters come accross. If the field contains Anthony
> Independent School District in my Access Table, the Excel file only shows
> the
> Word District. The characters that come accross are always the last 7 or
> 8
> (or the right side of the field).
>
> The rest of the columns come accross fine.
>
> Anyone have an idea as to how I can get this to work?
>
> Thanks in Advance
>
> Toni.
>
>
>



 
Reply With Quote
 
Antonette
Guest
Posts: n/a
 
      7th Oct 2009
Ken;

I am sorry, I counted wrong! It is 127 Columns!

Still the same problem.

Sorry for misleading you guys.

Thanks

Toni

"Ken Snell" wrote:

> An .xls file cannot have more than 255 columns, so I'm surprised that you
> get any columns at all.
>
> An ACCESS table with 257 fields "screams" that the database is not
> normalized. Most ACCESS tables will have less than 30 fields when a database
> is properly normalized.
>
> --
>
> Ken Snell
> http://www.accessmvp.com/KDSnell/
>
>
> "Antonette" <(E-Mail Removed)> wrote in message
> news:BC3D61A4-9C67-4AD3-B758-(E-Mail Removed)...
> > Hi Guys;
> >
> > I have an Access Table (257 Columns) that I need to Export to an
> > Excel File.
> >
> > I am using a Macro to create the Excel File.
> >
> > Action = Output
> >
> > Object Type =Table
> > Object Name = SchoolsExcl
> > Output Format = MicrosoftExcel(*.xls)
> > Output File = C:\TxTeachers\TexasHS.xls
> > Auto Start = No
> >
> > Every Column comes accross except One.
> >
> > The column that does not come accross completely is the largest field in
> > my
> > table. 50 Characters long. It is a string.
> >
> > Only about 7 to 8 characters come accross. If the field contains Anthony
> > Independent School District in my Access Table, the Excel file only shows
> > the
> > Word District. The characters that come accross are always the last 7 or
> > 8
> > (or the right side of the field).
> >
> > The rest of the columns come accross fine.
> >
> > Anyone have an idea as to how I can get this to work?
> >
> > Thanks in Advance
> >
> > Toni.
> >
> >
> >

>
>
>

 
Reply With Quote
 
Ken Snell
Guest
Posts: n/a
 
      25th Oct 2009
Try using TransferSpreadsheet macro action instead of OutputTo action.

And, again, 127 fields in a single table still strongly suggests that your
table and data are not normalized.

--

Ken Snell
http://www.accessmvp.com/KDSnell/


"Antonette" <(E-Mail Removed)> wrote in message
news:E9F683BE-E797-4921-9241-(E-Mail Removed)...
> Ken;
>
> I am sorry, I counted wrong! It is 127 Columns!
>
> Still the same problem.
>
> Sorry for misleading you guys.
>
> Thanks
>
> Toni
>
> "Ken Snell" wrote:
>
>> An .xls file cannot have more than 255 columns, so I'm surprised that you
>> get any columns at all.
>>
>> An ACCESS table with 257 fields "screams" that the database is not
>> normalized. Most ACCESS tables will have less than 30 fields when a
>> database
>> is properly normalized.
>>
>> --
>>
>> Ken Snell
>> http://www.accessmvp.com/KDSnell/
>>
>>
>> "Antonette" <(E-Mail Removed)> wrote in message
>> news:BC3D61A4-9C67-4AD3-B758-(E-Mail Removed)...
>> > Hi Guys;
>> >
>> > I have an Access Table (257 Columns) that I need to Export to
>> > an
>> > Excel File.
>> >
>> > I am using a Macro to create the Excel File.
>> >
>> > Action = Output
>> >
>> > Object Type =Table
>> > Object Name = SchoolsExcl
>> > Output Format = MicrosoftExcel(*.xls)
>> > Output File = C:\TxTeachers\TexasHS.xls
>> > Auto Start = No
>> >
>> > Every Column comes accross except One.
>> >
>> > The column that does not come accross completely is the largest field
>> > in
>> > my
>> > table. 50 Characters long. It is a string.
>> >
>> > Only about 7 to 8 characters come accross. If the field contains
>> > Anthony
>> > Independent School District in my Access Table, the Excel file only
>> > shows
>> > the
>> > Word District. The characters that come accross are always the last 7
>> > or
>> > 8
>> > (or the right side of the field).
>> >
>> > The rest of the columns come accross fine.
>> >
>> > Anyone have an idea as to how I can get this to work?
>> >
>> > Thanks in Advance
>> >
>> > Toni.
>> >
>> >
>> >

>>
>>
>>



 
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
import access table to excel spreadsheet Souris Microsoft Excel Programming 3 5th Jan 2008 03:30 PM
Update access table with Excel Spreadsheet =?Utf-8?B?U0lUQ0ZhblRO?= Microsoft Access VBA Modules 1 29th May 2006 03:12 AM
How do I transfer an Excel spreadsheet to an Access table Ed Microsoft Access VBA Modules 2 2nd Sep 2004 01:39 PM
access table from an excel spreadsheet =?Utf-8?B?dHJleSBicmFpZA==?= Microsoft Access 2 16th Jun 2004 01:30 PM
Excel spreadsheet from Access table + keep hyperlinks Ellen Microsoft Excel Misc 1 12th May 2004 11:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 PM.