Hi Doug,
First off, I just want to say thanks for helping me with my posts in the
past. Well,I been looking at Ken Getz, Litwin and Roman's books about Access
and ADO.
It sounded to me ADO was to stay and DAO into obscurity. In my experience,
I have seen an Excel app using ADO to query against oracle, the result came
back in nearly instantaneously written out on an Excel worksheet.
But when I wrote the same application in Access (2003) using DAO, and
through automation writing the recordset out an Excel spreadsheet, it was far
from near instantaneous, granted the code had to work through COM automation
instead of directly within Excel. But the difference in time was very
substantial, the recordset came in about 1300 records. In the case of Excel
app, it came back so fast it was unbelievable. In my case using Access with
DAO, I got the recordset and write out to Excel, it took close to 1 min.
Same query.
Why does it matter, because, our internal users are accustom to that near
instantaneous response. My Access application improved one of the other old
queries in the Excel app, it went from 15min wait to about near
instantaneous, but that was due some query optimization I did.
The other reason was just to learn a new skill set, but as I dig deeper, I
realized ADO can't create queries, tables...etc, things I routinely do in
DAO. And this is frustrating. I recently learned that I have to use ADOX,
after I did some web search, posting my questions and reading Roman's book
(Access Database by ORA)
I am not sure if my Access DAO response was slow primarily due to COM
automation, but the Excel app using ADO was REALLY fast. Your thoughts?
Thanks,
Ben