Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Undo "Outline" in Excel

I am working in Office 2003, and have created a form and procedures for a
user to create a "Data dump" from a report in Access 2003 to Excel. The
"data dump" is based on a 2 table SQL statement.
I WANT a flat file but I am getting an "outline" file; One level of the
outline is from 1 table and the other is from the second table (This used to
produce what I want in Office 2000.) I cannot figure out how to create the
"flat file" within Excel.

1) How can I create the "flat file" once the data gets to Excel? IS there a
setting I can change?
2) Is there an argument I can add to my VBA code in Access that will
produce a real "flat file"?

Thanks in advance-

Loralee

--
Loralee
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Undo "Outline" in Excel

In your VBA code in Access, you can use a TransferText command to export the
output of the query that provides data for the report to a text file. For
example,

'Export as delimited text file
DoCmd.TransferText TransferType:=acExportDelim, _
TableName:="MyQuery", FileName:="D:\Data\MyFile.txt", _
HasFieldnames:=True

You can export to a fixed-width text file but you will have to create an
export specification. For example,

DoCmd.TransferText TransferType:=acExportFixed, _
SpecificationName:="MyQuery Export Spec", _
TableName:="MyQuery", _
FileName:="D:\Data\MyFile1.txt", _
HasFieldnames:=True

Hope this helps,

Hutch

"Loralee" wrote:

I am working in Office 2003, and have created a form and procedures for a
user to create a "Data dump" from a report in Access 2003 to Excel. The
"data dump" is based on a 2 table SQL statement.
I WANT a flat file but I am getting an "outline" file; One level of the
outline is from 1 table and the other is from the second table (This used to
produce what I want in Office 2000.) I cannot figure out how to create the
"flat file" within Excel.

1) How can I create the "flat file" once the data gets to Excel? IS there a
setting I can change?
2) Is there an argument I can add to my VBA code in Access that will
produce a real "flat file"?

Thanks in advance-

Loralee

--
Loralee

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Undo "Outline" in Excel

Tom-

Thanks! I'll be able to make use of this (creating delimited files and
fixed space txt files for other portions of this project. (It works great- )

And you got me to look at some of the other export methods. In this
situation, the users who have to do this will go "blurry eyed" if they are
faced with a text file. This creates the excel file and even opens Excel-
(so they have their info in a format they can use).

DoCmd.OutputTo acOutputQuery, "qryHealthReferralLine2", acFormatXLS, , True

Thank you so much!



--
Loralee


"Tom Hutchins" wrote:

In your VBA code in Access, you can use a TransferText command to export the
output of the query that provides data for the report to a text file. For
example,

'Export as delimited text file
DoCmd.TransferText TransferType:=acExportDelim, _
TableName:="MyQuery", FileName:="D:\Data\MyFile.txt", _
HasFieldnames:=True

You can export to a fixed-width text file but you will have to create an
export specification. For example,

DoCmd.TransferText TransferType:=acExportFixed, _
SpecificationName:="MyQuery Export Spec", _
TableName:="MyQuery", _
FileName:="D:\Data\MyFile1.txt", _
HasFieldnames:=True

Hope this helps,

Hutch

"Loralee" wrote:

I am working in Office 2003, and have created a form and procedures for a
user to create a "Data dump" from a report in Access 2003 to Excel. The
"data dump" is based on a 2 table SQL statement.
I WANT a flat file but I am getting an "outline" file; One level of the
outline is from 1 table and the other is from the second table (This used to
produce what I want in Office 2000.) I cannot figure out how to create the
"flat file" within Excel.

1) How can I create the "flat file" once the data gets to Excel? IS there a
setting I can change?
2) Is there an argument I can add to my VBA code in Access that will
produce a real "flat file"?

Thanks in advance-

Loralee

--
Loralee

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
One should be able to "jump" over undo command in Excel Paul Excel Discussion (Misc queries) 1 February 27th 07 03:01 PM
How do I create an "outline summary" - please see message for deta jmcclain Excel Worksheet Functions 1 May 18th 06 10:40 PM
With autorecover on in Excel you lose your "undo" functionality. AndyBofNY Excel Discussion (Misc queries) 0 April 28th 06 10:47 AM
"outline active cell differently than other cells" terri Excel Discussion (Misc queries) 1 January 25th 06 08:26 PM


All times are GMT +1. The time now is 10:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"