Results 1 to 5 of 5

Thread: open and close txt file

  1. #1

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    38

    open and close txt file

    hi im trying to align the name and the email address can someone help me out?

    Private Sub cmdcontact_Click()
    'Save Contact
    Open "contact.txt" For Append As #1
    Printer.Print "txtname.Text", "txtemail.Text"
    MsgBox ("Contact Saved")
    End Sub

    it ends up coming out like this in the text file

    jim mack [email protected]
    Albert Sanchez [email protected]
    Chris Jones [email protected]

  2. #2

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: open and close txt file

    Use a small database instead of a text file.

  4. #4

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    38

    Re: open and close txt file

    hack can you give me more details on that?

  5. #5

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    38

    Re: open and close txt file

    ok i see what you mean now but how would i be able to save the values into the database?

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