If your only plan is to use Data Access to attach to Access Databases,
then you are best of staying with DAO. Even Microsoft admits that DAO
is still the fasted way to connect to the Jet Engine. However, if
there is even the slightest chance you plan on switching databases,
say to SQL Server, then you should use ADO.
Jeremy
Quote:
>I am new to the ADO scene and Microsoft states that it is faster than
>DAO. Well I am not getting that. I am finding it about 6 times slower.
>Maybe someone can help me out here.
>Here is the test I have been using:
>- two ADO controls labeled:
> dat1 - connected to Biblo-Authors
> dat2 - connected to Test-Authors (same format as empty table
>Biblo-Authors)
>private sub CopyDat()
> dim ST as long
> ST = timer
> dat1.recordset.movefirst
> do until dat1.recordset.eof
> dat2.recordset.addnew
> dat2.recordset!AU_ID = dat1.recordset!Au_ID
> dat2.recordset!Author = dat1.recordset!Author
> dat2.recordset![Year Born] = dat1.recordset![Year Born]
> dat2.recordset.update
> dat1.recordset.movenext
> loop
> msgbox "Total time to copy = " +str$(timer-ST)
>end sub
>I have used both the ADO and the DAO and DAO is doing it much faster.
>Anyone have any ideas?
>Thanks