iz koje baze zelis da ucitas? Recimo da se radi o MSSQL bazi (i sa ostalim je slicno)
Dim veza as new SQLConnection("") 'ne znam napamet connectionstring ali proguglaj malo za ovim
dim Komanda as new SQLCommand("SELECT ime from tbAdresar where Prezime='Pejanovic'",Veza)
Dim Citac as SQLDataReader
Sub Ucitaj_Tekst
try
veza.open
citac=komanda.executereader
citac.read
textbox1.text=citac.item("ime")
citac.close
veza.close
catch gr as SQLException
msgbox gr.message
end try
End Sub
E tako si ucitao u polje a sad treba da to zapises
Sub Zapisi(vrijednost as string)
try
veza.open
komanda.commandtext="UPDATE tbAdresar set ime='" & textbox1.text & "' where prezime='Pejanovic'"
komanda.executenonquery
veza.close
catch gr as SQLException
msgbox gr.message
end try
End Sub