Results 1 to 6 of 6

Thread: Saveing on the fly?

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    32

    Post Saveing on the fly?

    is there a way to save all information inputed into a form then go to another form and then simple add the information from form 2 to the same file.... or do I have to carry over all the inputed information tille one point and save it all?

  2. #2
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    I think this is what you need:
    Open somefile For Append As #1

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    32
    and when I go to save the information do I simply :
    PRINT #1 date, data2, data3
    close #1

  4. #4
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    yep

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    32

    THANKS

    thank you!

  6. #6
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    Just try this:
    VB Code:
    1. Open "c:\somefile.txt" For Output As #1
    2.     Print #1, "some text"
    3. Close #1
    4. Open "c:\somefile.txt" For Append As #1
    5.     Print #1, "some text"
    6. Close #1

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