Exporting to text file.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CD Tom
    Contributor
    • Feb 2009
    • 495

    Exporting to text file.

    This is driving me nuts!!! I have a table that one of the columns is set as Double, Fixed, 3 digits. I try and export this to a .txt file for a backup using the docmd.transfert ext command but when I look at the file I only have 2 digits. What am I doing wrong and how can I get this to export 3 digits.
    Hopefully come one can give me an answer.
    Thanks for all your help.
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    1. Create a Query based on your Table.
    2. Create a Calculated Field which Formats the [Double] Field to display 3 digits, something similar to:
      Code:
      NewDouble: Format([Double],"#,#,#.000")
    3. Do not Show the original [Double] Field in the Output.
    4. Show the Formatted Field ([NewDouble]) in the Output.
    5. Used the Query in the TransferTtext Method and not the Table.

    Comment

    • CD Tom
      Contributor
      • Feb 2009
      • 495

      #3
      That worked great thanks for the help.

      Comment

      • CD Tom
        Contributor
        • Feb 2009
        • 495

        #4
        Thanks for the help.

        Comment

        • ADezii
          Recognized Expert Expert
          • Apr 2006
          • 8834

          #5
          You are quite welcome, CD Tom.

          Comment

          Working...