ACC1x: TransferText Action Removes Spaces from Field Names

ID: Q109734


The information in this article applies to:


SYMPTOMS

The TransferText action removes embedded spaces from field names if the Has Field Names argument is set to Yes, and the Transfer Type argument is set to Delimited Text.


STATUS

This problem no longer occurs in Microsoft Access version 2.0.


MORE INFORMATION

The Has Field Names argument indicates whether the table or query field names should be included as the first row of the exported text file. When set to Yes, the table or query field names will be exported to the text file as the first row of the text file. Embedded spaces will be removed from the field names in the first row of the exported text file.

Note that the Has Field Names argument does not apply if the Transfer Type argument is set to Fixed-Width. When you use the Fixed-Width setting, the field names are a part of the fixed-width import/export specification.

Steps to Reproduce Behavior


  1. Open the sample database NWIND.MDB.


  2. Create the following macro, and then save it as TransferText Macro:
    
         Macro Name            Actions
         ----------------------------------
         Transfer Text Macro   TransferText
    
         TransferText Actions
         -----------------------------------
         TransferText
            Transfer Type: Export Delimited
            Specification: <leave blank>
            Table Name: Shippers
            File Name: SHIPPERS.TXT
            Has Field Names: Yes 


  3. From the Macro menu, choose Run.


  4. When the macro has finished, quit Microsoft Access.


  5. Open the SHIPPERS.TXT file in any text editor (such as Windows Notepad). Note that the spaces in the field names in the first row of the file have been removed. For example, the name "Shipper ID" has become "ShipperID."



REFERENCES

For more information about the TransferText action, search for "TransferText" then "TransferText Action" using the Microsoft Access Help menu.


Keywords          : kb3rdparty IsmTxtd 
Version           : 1.0 1.1
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 2, 1999