With the following method inserting data into a table linked from an SQL database, would there be any specific reason why it would be slow adding a single record?
I suspect its due to the fact that the table has 300,000 records but I’d like a second opinion on this, any help would be much appreciated.
Set SQuery = dbs.OpenRecordset(“PJStockTestEdcoms”, dbOpenDynaset, dbSeeChanges, dbOptimistic)
With SQuery
‘ Add new record to end of Recordset object.
.AddNew
!ProductID = 1
!teacherid = 1
.Update ‘ Save changes.
End With