改成
Dim dr As DataRow = DataTables("user").Find("[name] = '" & UserName & "'")If dr isnot Nothing AndAlso Password = dr("password") Then Verified = TrueEnd If