Thank you Kebo. I ended up with the following code after the update command.
vb.net Code:
Dim resultaat As String opdragresultaat.CommandText = "SELECT GroeperingsKode FROM skedulering2 WHERE kultklas = '" & DGVKultklas & " '" opdragresultaat.Connection = konneksie resultaat = CType(opdragresultaat.ExecuteScalar(), String) kode = resultaat




Reply With Quote
