Welcome to the forums 
You can use the registry...
Add one TextBox named Text1 to your Form. Run the code, type something, unload and re-load. It will re-load your setting (what you've typed):
VB Code:
Option Explicit
Private myString As String
Private Sub Form_Load()
myString = GetSetting("myApp", "Settings", "myString", vbNullString)
Text1.Text = myString
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
myString = Text1.Text
SaveSetting "myApp", "Settings", "myString", myString
End Sub