Consulting

Results 1 to 2 of 2

Thread: Solved: Write function in forms

  1. #1

    Solved: Write function in forms

    The below code writes the info entered in a textbox into a txtfile:
    [VBA]Open "C:\Users\accounts.dat" For Append As #1
    Write #1, TextBox1.Text
    Close #1[/VBA]

    When i open the txt file, it always display a " " around the text, so i was wondering if there is a way you can remove the " ".

    So for example I entered the word Data into the textbox in the form, I want it to write into the .txt file Data instead of "Data".

  2. #2
    I manage to figure it out. Use Print instead of Write

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •