adoCmd.Connection = adoConnection
adoCmd.CommandType = CommandType.Text
adoCmd.CommandText = "SELECT * FROM viewOfNames where department = "Accounts""
adoRdr = adoCmd.ExecuteReader()
sTest = adoRdr(Surname)
sTest2 = adoRdr(Forename)
sTest3 = adoRdr(Department)
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)