well. you can save the form as an exe from code?

anyway I think this is what you want.

User types data in a text field... then closes the program
when opened.. the text is back in the field?

VB Code:
  1. Private Sub Form_Load()
  2.     If Len(Dir(App.Path & "\data.txt")) <> 0 Then
  3.         Open App.Path & "\data.txt" For Input As #1
  4.             Text1.Text = Input(LOF(1), 1)
  5.         Close #1
  6.     End If
  7. End Sub
  8.  
  9. Private Sub Form_Unload(Cancel As Integer)
  10.     Open App.Path & "\data.txt" For Output As #1
  11.         Print #1, Text1.Text
  12.     Close #1
  13. End Sub