Results 1 to 2 of 2

Thread: Saving???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253

    Question

    I'm trying to save data that is in my preview form. I can get the file to save but cannot get the data to write to the file. I'm having so much trouble with this so if anyone can help me I would greatly appreciate it.
    Here is what I have so far:

    Private Sub mnuFileSaveAs_Click()

    On Error Resume Next

    CommonDialog1.Filter = "All Text Files (*.txt)|*.txt"
    CommonDialog1.ShowSave

    strOpenFile = CommonDialog1.FileName

    Set ts = fso.CreateTextFile(strOpenFile, True)

    strData = Text1.Text

    ts.Write (strData)
    ts.Close

    End Sub

    An error comes up saying that it does not like the Text1.Text. ?????

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    open "c:\pornlist.txt" as output as #1
    print #1, text1.text
    close #1

    Word to your Mother,

Posting Permissions

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



Click Here to Expand Forum to Full Width