Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC Workspace

Status
Not open for further replies.

Muttley

MIS
Joined
Nov 22, 2000
Messages
50
Location
US
Hi,

I'm trying to open an ODBC workspace in a sub, declaring the workspace as follows:

Dim wrkMain as Workspace

And I get the following error message when I run the code:

"A module is not a valid type"

I am running the sub from a button on a form, have tried running it also as a stand alone module, but still no joy. Removing the 'Option Explicit' declaration stops the problem, but I don't want to do this for other reasons. Can anyone help!!!!!
 
Make sure that your ODBC drivers are installed.....if not go to and go to downloads...ODBC driver and dl the proper driver...that should work after that

good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top