Excel ODBCDIRECT

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.
 

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

VBA into Maximiser 2
OpenRecordset 8
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
ODBCDirect 4

Top