If a user types invalid data, I want to empty the textboxes for them to enter data a second time. I have tried setting .text = "" and this does nothing. Any suggestions?
Here is the code I am using (that doesn't work)
MsgBox "Client " & stClient & " already exists"
frmMain.txtClient.Text = ""
frmMain.txtCommPass.Text = ""
frmMain.txtPass = ""
Exit Sub
the code is executed, because I have stepped through it, but the boxes stil contain the invalid data, and the user has to delete it.
Thanks
Catrina
Here is the code I am using (that doesn't work)
MsgBox "Client " & stClient & " already exists"
frmMain.txtClient.Text = ""
frmMain.txtCommPass.Text = ""
frmMain.txtPass = ""
Exit Sub
the code is executed, because I have stepped through it, but the boxes stil contain the invalid data, and the user has to delete it.
Thanks
Catrina