T
Tascien
'hi, this code is easy and straight forward in ADODB. if ADO.NET is easier
'and requires less code writing..., how do i write the same code...
rs.Open "SELECT * FROM tb_City WHERE name='Vancouver'", myConn, 3,4
if rs.Eof then
rs.AddNew
End if
rs("LastViewed")=Now()
rs.UpdateBatch()
' To keep in mind...
' I want to check if a vancouver exists, if not, add it, if yes, just update
' the record that is there.
'and requires less code writing..., how do i write the same code...
rs.Open "SELECT * FROM tb_City WHERE name='Vancouver'", myConn, 3,4
if rs.Eof then
rs.AddNew
End if
rs("LastViewed")=Now()
rs.UpdateBatch()
' To keep in mind...
' I want to check if a vancouver exists, if not, add it, if yes, just update
' the record that is there.