I am new to VB.Net My old VB 6 code is:
I want get sql table field and if eof then add record using VB.NET. Thanks for help.
Code:
Set conn = "my connection string"
conn.open
Set ce = conn.Execute("select * from table where id = 1")
If ce.EOF Then conn.Execute ("insert into table set name = '" & Text1.Text & "'")