i created a form called "EnterName.frm", inside this form there is a textbox called "txtName" and a command button called "cmdOK".

well my problem is how can i store the name input by the user in the textbox to a text file called "namelist.txt" upon the cmdOk is clicked?

the file "namelist.txt" will always store names whenever different users input their names in the textbox "txtName".