![]() |
#5 |
Moderator
|
Цитата:
Сообщение от sukhanchik
Если это возможно (в Вашем случае) - я бы порекомендовал подключение через ADO. (Классы ссADO*).
"Примеры подключения различных Баз Данных через ADO" (в том числе через драйверы ODBC) http://www.webmasterpro.com.ua/news339.html Цитата:
Данный материал содержит примеры создания строк ADO connection для различных типов часто используемых Баз Данных, например: ODBC DSN, ODBC DSN-Less, OLE DB Provider, MS Remote, Oracle, Excel, FoxPro и т.д.
Цитата:
Примечание: You can also open an Excel spreadsheet using the "OLE DB Provider for Microsoft Jet"
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=somepathexpenses.xls;" & _ "Extended Properties=""Excel 8.0;HDR=Yes;"";" Where "HDR=Yes" means that there is a header row in the cell range (or named range), so the provider will not include the first row of the selection into the recordset. If "HDR=No", then the provider will include the first row of the cell range (or named ranged) into the recordset. "How To Open a Secured Access Database in ADO Through OLE DB" http://support.microsoft.com/kb/q191754/ P.S. Если кто-то будет играться с темой "ADO+Excel", то вот в дополнение крайне полезная ссылка на ветку "Быстрый Excel": http://www.axforum.info/forums/showt...2677#post22677 , в которой упоминается тема "How To Use ADO with Excel Data from Visual Basic or VBA": http://support.microsoft.com/kb/q257819/ Последний раз редактировалось Gustav; 20.04.2006 в 12:50. |
|
|
За это сообщение автора поблагодарили: sukhanchik (1). |