Excel ODBCDIRECT

  • Thread starter Thread starter LarryC
  • Start date Start date
L

LarryC

I want to update an oracle database from excel using
ODBCDirect. The VBA help has an example subroutine
Preparex.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub PrepareX()

Dim wrkODBC As Workspace
Dim conPubs As Connection
Dim qdfTemp As QueryDef
Dim rstTemp As Recordset
' Create ODBCDirect Workspace object and open
Connection
' object.
Set wrkODBC = CreateWorkspace("", _
"admin", "", dbUseODBC)

......
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When I execute the example, I receive an error referring
to: Dim wrkODBC As Workspace
Compile error:
User-defined type not defined

Seems like there is a missing library that defines
Workspace etc...

Does anyone have any ideas?

Thanks.
 
Larry

Microsoft DAO 3.x Object Library

might be what you're looking for.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

OpenRecordset 8
VBA into Maximiser 2
insert data ODBC 3
Convert ODBCDirect Codes to ADO in Access 2007 1
ODBC Connection 4
Excel 16 bit limitation 2
Connection problem using DAO 3
ADO vs DAO in Access 2007 8

Back
Top