ACC1x: TransferText Action Removes Spaces from Field Names

Last reviewed: May 28, 1997
Article ID: Q109734
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

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 : IsmTxtd kb3rdparty
Version : 1.0 1.1
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.