Private Sub Command1_Click()
Dim namefile As String
namefile = Text1.Text
Open App.Path & "\Accounts\" + namefile + ".txt" For Output As #1
Print #1, Text1.Text
Print #1, Text2.Text
Print #1, Text3.Text
Print #1, Text4.Text
Close #1
MsgBox "Thank you for your registration, please login!"
Form2.Show
Form1.Hide
End Sub
--------------------------------------------------------------------------
That's the code i use..
Problem : if i create another 2 users with the same username(datafile)
Then it gets overwritten, which i dont want it to get... Any ideas how to make it say
msgbox ="Username already exists" ? Thanks..