anyone can help me please!
i have a problem in coding...
i want to restrict some buttons of my form if the user is not a admin
i already tried this code..
sql = "SELECT Position FROM tbllogin WHERE username = "txtUsername.text"" NewDataSet(sql) if .ds.Tables("a").Rows.Count= "Administrator" Then employeeFile.btnDelete.Enabled = True else employeeFile.btnDelete.Enabled = False End if
but it doesnt work please anyone can help here