hi,
Below are two different code. Doing same task.
Which is better to use and effective ?
Code 1
rs.Open sql, Adoconn, adOpenDynamic, adLockOptimistic
rs.AddNew
rs.Fields("ItemCode").Value = "AWI01"
rs.Fields("Name").Value = "ABDEOD"
rs.Fields("DDATE").Value = Date
rs.Update
Code 2
execute.sql(insert.....)
Cap2010
Below are two different code. Doing same task.
Which is better to use and effective ?
Code 1
rs.Open sql, Adoconn, adOpenDynamic, adLockOptimistic
rs.AddNew
rs.Fields("ItemCode").Value = "AWI01"
rs.Fields("Name").Value = "ABDEOD"
rs.Fields("DDATE").Value = Date
rs.Update
Code 2
execute.sql(insert.....)
Cap2010