Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think I've answered my own question. Here is what I came up with using
ADO. It seems to work and it's about 100 times faster! Sub RunAccessQueries_ADO() Dim cn As ADODB.Connection Dim cm As ADODB.Command dbPath = "d:\data\mypath\" dbName = "mydb.mdb" Set cn = New ADODB.Connection Set cm = New ADODB.Command With cn .CommandTimeout = 0 .Provider = "Microsoft.Jet.OLEDB.4.0;" .ConnectionString = "Data Source=" & dbPath & dbName .Open End With With cm .CommandText = "DROP TABLE temp_tbl" .CommandType = adCmdText .ActiveConnection = cn .Execute ' .CommandText = "qryMakeTable" .CommandType = adCmdStoredProc .ActiveConnection = cn .Execute ' .CommandText = "qryAppend" .CommandType = adCmdStoredProc .ActiveConnection = cn .Execute ' End With ' cn.Close ' End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 / MS Query - editing existing query to another sheet | Excel Discussion (Misc queries) | |||
Excel Programmatic (Existing) Workbook Access in .NET 2.0 | Excel Programming | |||
Can I use MS Query in Excel like an Append Query in Access | Excel Discussion (Misc queries) | |||
Run Access query from Excel, input value to query being value in c | Excel Programming | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) |