Module Module1 Public u As String End Module
and I have used this variable in this code like this to hold the username
con.Open() cmd.Connection = con cmd.CommandText = "SELECT * FROM tbllogin where username = '" & TextBox1.Text & "' and password = '" & TextBox2.Text & "';" u = TextBox1.Text cmd.Connection = con adaptor.SelectCommand = cmd adaptor.Fill(dataset, "O")
Now how can I flush the variable value after logout?
I have used
but it didn't work